ngarasan VIP
Total posts: 181
22 Нояб 2012 06:38

Hi,

I just installed a fresh Joomla 2.5 and Cobalt Package. I also installed Forum Pack. No article added by me yet.

  • When I login (frontend) as admin, I will always get these message:

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

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

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

I have checked, no user with this ID. And I checked also, no article and comments created with these ID.

Note: the page is displayed properly.

  • When I login as a user (not admin), no error message. Everything look nice.

Please help.

Последние изменения: 02 Март 2014


Sergey
Total posts: 13,748
22 Нояб 2012 06:45

Yes there is an issue with this. We cannot find where it is not updated. Can you enable debug mode and see error stack in error log?


ngarasan VIP
Total posts: 181
22 Нояб 2012 06:55

Hi,

Here they are the error stack:

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

Call stack

Function Location

1 JSite->dispatch() JROOT/index.php:42

2 JComponentHelper::renderComponent() JROOT/includes/application.php:197

3 JComponentHelper::executeComponent() JROOT/libraries/joomla/application/component/helper.php:351

4 require_once() JROOT/libraries/joomla/application/component/helper.php:383

5 JController->execute() JROOT/components/com_cobalt/cobalt.php:54

6 CobaltController->display() JROOT/libraries/joomla/application/component/controller.php:761

7 JController->display() JROOT/components/com_cobalt/controller.php:38

8 CobaltViewRecords->display() JROOT/libraries/joomla/application/component/controller.php:722

9 JView->display() JROOT/components/com_cobalt/views/records/view.html.php:178

10 JView->loadTemplate() JROOT/libraries/joomla/application/component/view.php:205

11 include() JROOT/libraries/joomla/application/component/view.php:649

12 JView->loadTemplate() JROOT/components/com_cobalt/views/records/tmpl/default.php:18

13 include() JROOT/libraries/joomla/application/component/view.php:649

14 CEventsHelper::showNum() JROOT/components/com_cobalt/views/records/tmpl/default_markup_forum.php:49

15 CEventsHelper::getNum() JROOT/components/com_cobalt/library/php/helper.php:587

16 CCommunityHelper::getName() JROOT/components/com_cobalt/library/php/helper.php:556

17 JFactory::getUser() JROOT/components/com_cobalt/library/php/community.php:122

18 JUser::getInstance() JROOT/libraries/joomla/factory.php:225

19 JUser->__construct() JROOT/libraries/joomla/user/user.php:269

20 JUser->load() JROOT/libraries/joomla/user/user.php:228

21 JError::raiseWarning() JROOT/libraries/joomla/user/user.php:886

22 JError::raise() JROOT/libraries/joomla/error/error.php:276


Sergey
Total posts: 13,748
22 Нояб 2012 19:46

Oh! Yes. It is a saved notifications. They store JSON data for users. Please delete all notifications. THat is it.


ngarasan VIP
Total posts: 181
22 Нояб 2012 21:02

Great!

It seems, the error message appears because I install Forum Pack, I guess :)

There is no error message after I deleted all item in the forum.

Thank you for your help.


pepperstreet VIP
Total posts: 3,837
23 Нояб 2012 04:34

Finally, i got the same error with 1 of the above userID's. I thought it was my fault, because of tests with Cobalt Tools and userID changes. I also had an error 500 on Notification center and logged in SuperAdmin...

Cleared Notifications on ForumPack page... and everything is back to normal. :D


pepperstreet VIP
Total posts: 3,837
29 Дек 2012 03:36

BTW, same happens on Cobalt 8 and fresh Forum pack install.

Warning

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

Sergey
Total posts: 13,748
29 Дек 2012 07:30

TO get rid of error just clean notifications table.


Гость
12 Дек 2013 04:50

Hi,

I've the problem. Please help me:

**Error

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

JUser: :_load: Unable to load user with ID: 42**


Sergey
Total posts: 13,748
12 Дек 2013 23:05

Create User and set ID 42 for him.

Работает на Cobalt