Unable to load user with ID: 42

More
11 years 9 months ago #26507 by biowep
Hi, I recently installed Joomla 2.5.6 to test FLEXIcontent and I noticed that in the frontend I get this error: JUser: :_load: Unable to load user with ID: 42

I have just one user registered (Super user) having ID:21 (In the future this may change again)

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

More
11 years 9 months ago #26514 by kenmcd
.

42 is the default super admin user ID for new J2.5 installations.
Which means that if it is now 21 that someone changed it.

This appears to be a Joomla issue.

Perhaps to simply test FLEXIcontent on J2.5 you may want to leave the user IDs alone.

.

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

More
11 years 9 months ago #26534 by biowep
I reinstalled Joomla, the Super user's id is now 803, reinstalled another time, it is 776.

I don't understand what do you mean with "leave the user IDs alone."

Joomla 2.5.6

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

More
11 years 9 months ago #26535 by ggppdk
I see, this must be a new feature of recent J2.5 versions, i guess for better security ...

Anyway, FLEXIcontent code for J2.5 does not have hard coded the loading of user with id 42, so your message must be coming from some other third party Content/System Plugin or so other module.


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 9 months ago #26548 by kenmcd
.
It appears the random super admin user ID was added in Joomla 2.5.5.

The error message could be from some content which was created with user ID 42.
This could be from some old sample data.
Or ???

It could also be from another extension which is expecting user ID 42.

As ggppdk mentions above, FLEXIcontent does not have this ID hardcoded anywhere, so the issue is coming from something else.

.

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

More
11 years 9 months ago #26550 by ggppdk
On rare cases that admin user id is needed FLEXIcontent code will not use a hard-coded value, instead it uses:

JFactory::getUser( 'admin' )->get('id')

-- Meaning it will use the userid of what your site has after installation

-- Furthermore userids are not changed after initial installation, so FLEXIcontent will work on all cases.

But various extensions were written with a hard-coded user-id for the admin user.

I have searched through code just i case i have missed something , please do this:

-- Make a fresh install of J2.5.6 and
-- then install ONLY FLEXIcontent and NONE other extension
-- then test

Does the error occur???


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.301 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline