One of our members is having an error in a Joomla site that involves a K2 item. The error makes reference to a user ID:
JUser: :_load: Unable to load user with ID: 73
By searching the user ID in the administrator area, I realized that the user account doesn't exist; the account was probably deleted.
In this post, I'm going to show you how to fix this error with a couple of clicks.
The error message
If you see this error while seeing a K2 item in the front-end of your site, it means the user associated to that item was deleted:
The number makes reference to the user id stored in the database. We will replace it with the id of an existing user, a "Super user" in this example.
Step #1. Confirm the issue
- In your backend, go to Components > K2 > Items > Your K2 item
- Check the information on the right, see if "Created by" is empty.
In this example, no value for "Created by" confirm the issue. In the next steps we will explain how to fix it.
Step #2. Get the Super user id
- Go to Users > Manage
- Look for the Super user and copy its id. In my example is 246.
We will use this id as a replacement for the K2 item author.
Step #3. Change the author
Go to "Author publishing status" box and click "Change":
- Select a user
- Save an close
Step #4. End result
Refresh your K2 item in your front-end to confirm the error is gone and repeat step 1 to check "Created by" is not empty.
About the author
Valentín creates beautiful designs from amongst the tequila plants of Jalisco, Mexico. You can see Valentín's design work all over this site and you can often find him helping members in our support forum.