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. Change the author
Go to "Author publishing status" box and click "Change":
- Select a user
- Save an close
Step #3. 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.