Notifications
Clear all

[Solved] Is this error disabling wpforo post views?

3 Posts
2 Users
0 Reactions
1,805 Views
Posts: 2
Customer
Topic starter
(@stevechisnell)
Member
Joined: 7 years ago

At some point in the last two weeks my forum posts stopped appearing. Users had previously seen posts and added, but now when I click on any forum or sub-forum, I get a frame and no post. I do receive an error message:

Fatal error: Call to a member function get_image() on boolean in /home/chisnell/public_html/wp-content/plugins/wpforo-mycred/wpforo-mc.phpon line 248  

This does not always appear, however, so I'm not certain that it's tied to th

forum

e issue.  

Am I missing a setting or something that is really basic?  Thanks in advance for the assistance!

2 Replies
Astghik
Posts: 6193
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

@stevechisnell,

Please do this change in the core file. Install WP Editor plugin (please don't use WordPress native plugin editor). Navigate to Dashboard > Plugins > Editor. Select wpForo - myCRED Integration plugin,  find and open the wpforo-mycred/wpforo-mc.php file. Find this code (line 247):

if ($badge->level_image !== false)

Change it to this:

if ($badge && $badge->level_image !== false)

Please let us know how it works. 

Posts: 2
Customer
Topic starter
(@stevechisnell)
Member
Joined: 7 years ago

This worked completely!  Many thanks!

Share:
Scroll to top