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

Type: Discussion
Status: New
d1rt
View Replies:
jshannon replied on at Permalink Reply
jshannon
Hmm...

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
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
I am experiencing the same issue. However, in my case it's showing on a fresh install using concrete 5.5.2.1.
jshannon replied on at Permalink Reply
jshannon
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?
geekpatrolmiller replied on at Permalink Reply
geekpatrolmiller
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.
geekpatrolmiller replied on at Permalink Reply
geekpatrolmiller
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_...
jshannon replied on at Permalink Reply
jshannon
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

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.