Fatal error: Call to a member function getUserID() on a non-object
Permalink Browser Info Environment
Okay, I've been playing around with Conrete5 just to try and learn PHP and mysql. So today, I come home and out of the blue my "Concrete Wall" activity feed has the following error at the bottom of the page.
Fatal error: Call to a member function getUserID() on a non-object in /var/www/htdocs/packages/lerteco_wall/blocks/lerteco_wall/view.php on line 16
Line 16 of view.php is this:
$profile_url = $this->url('/profile','view', $user->getUserID());
I am far from a programmer and this is all greek to me at this point, but if any of you guru's can assist I would appreciate it.
Activity feed was working fine for a week and I haven't changed anything I know of that would cause this to happen.
Thanks,
d1rt
Fatal error: Call to a member function getUserID() on a non-object in /var/www/htdocs/packages/lerteco_wall/blocks/lerteco_wall/view.php on line 16
Line 16 of view.php is this:
$profile_url = $this->url('/profile','view', $user->getUserID());
I am far from a programmer and this is all greek to me at this point, but if any of you guru's can assist I would appreciate it.
Activity feed was working fine for a week and I haven't changed anything I know of that would cause this to happen.
Thanks,
d1rt
Type: | Discussion |
---|---|
Status: | New |
I am experiencing the same issue. However, in my case it's showing on a fresh install using concrete 5.5.2.1.
Hi.
Can you provide more info on where it's occurring (line number, etc). Is it all the time or only in certain circumstances? etc?
Can you provide more info on where it's occurring (line number, etc). Is it all the time or only in certain circumstances? etc?
I am also getting this error:
Site Activity
Fatal error: Call to a member function getUserID() on a non-object in /home/xxxxxxxx/public_html/concrete/models/user_statistics.php on line 39
This is when I am trying to access the dashboard. I was in it, fixed a misspelled word and published. When I tried to go back to the dashboard, I got the error. I have not been able to get around it yet.
Site Activity
Fatal error: Call to a member function getUserID() on a non-object in /home/xxxxxxxx/public_html/concrete/models/user_statistics.php on line 39
This is when I am trying to access the dashboard. I was in it, fixed a misspelled word and published. When I tried to go back to the dashboard, I got the error. I have not been able to get around it yet.
OK, not making sense, I just tried a few more times and it finally gave me the logon screen and let me log in. WT_...
Um... What are the indications this has anything to do with the Wall?
The error is coming from the user_statistics model, and the "Site Activity" heading, I think, is the main dashboard page (though you don't mention which page you're on).
James
The error is coming from the user_statistics model, and the "Site Activity" heading, I think, is the main dashboard page (though you don't mention which page you're on).
James
This might happen if there is no $user object. Not sure why that would be.
What info was it supposed to display (ie, what had generated the "posting")? Comments, likes this, etc?
Any possibility the user has been deleted since the posting was created?
James