Keyword

JUser: :_load: Unable to load user with ID: 531

  • John Vincent
  • John Vincent's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 6 months ago #110818 by John Vincent
Hi,

I get this error on all my pages. What am I doing wrong?

Thanks,

John

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #110819 by william white
Replied by william white on topic Re: JUser: :_load: Unable to load user with ID: 531
check your user table with phpmyadmin. is there a user with id 531?
If there is, is he a K2 user?
if there is not a user with that id, you may need to use phpmyadmin and try something like this
UPDATE `PREFIX_k2_items` SET created_by = NEW_ID WHERE created_by = OLD_ID
Be sure to back up your entire site FIRST!!

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #110820 by Edson Khorommbi
Replied by Edson Khorommbi on topic Re: JUser: :_load: Unable to load user with ID: 531
Hi John

I came across the same error and i managed to resolve it but i suggest the simplest way which is to go to php myadmin, locate your user table, for example (hs4gf_k2_users), if there is already a user with ID 531 delete him..

Then pick any of the users there and select copy, it will open the edit screen, then on the first text box to the right which will be blank inset the UserID (531) then just change username, name and email and save,

Likewise, Make a backup first :whistle:
And say Thanks

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #110821 by YannisDr
Hi everybody and Vincent,

In my case the error was caused by a mistake that previous developer did.
He had deleted the user who edited the article where I saw the error.
When I changed the user who modified the article, the error was gone.
Loading the phpMyAdmin I saw that the user who modified the article was id=742 (non existent) and after I corrected it, it was id= 0
So, perhaps you could fix the mistake by checking your phpMyAdmin and changing the users to an existing one.
Backup wise of course.
Cheers

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #110822 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: JUser: :_load: Unable to load user with ID: 531
It always safer to deactivate users than simply deleting them.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum