Fatal Error: call to a member get() on a non-object


#1

Hi, I’m getting the following error on my posts that display on the frontpage while using areview theme;

Fatal error: Call to a member function get() on a non-object in /home/powern/tryout.fadeoutfade.in/wp-content/themes/areview/content.php on line 36

only one post page shows up on the frontpage, if I click that page, I get a similar error on the post page itself;

Fatal error: Call to a member function get() on a non-object in /home/powern/tryout.fadeoutfade.in/wp-content/themes/areview/reviews/content-product.php on line 23

Thanks for your help in advance.


#2

Hello @seanoverall,

I have just inspected this issue and it looks like this problem is caused by recent change in Custom Field Suite plugin.

Please try to rollback Custom Field Suite 2.5.9 to Custom Field Suite 2.5.8. You can use WP Rollback plugin to do that.

Here is an extensive tutorial:

Please remember about importance of regular full site backups (files and database):
https://codex.wordpress.org/WordPress_Backups

Also you might want to check this tutorial:

I think that it will be fixed in the next aReview theme update. Please feel free to ask any other questions that you might have.

Kind Regards, Roman.


#3

Okay, it looks like Custom Field Suite plugin doesn’t work with WP Rollback plugin for some reason.

However, previous version .zip file seems to be available for downloading on GitHub:

This WordPress Codex page contains much relevant information that can help with manual rollback:
https://codex.wordpress.org/Managing_Plugins

I have just tried to manually rollback Custom Field Suite plugin on my local aReview install, it worked.


#4

Hello,

aReview 1.2.0 is currently available, so you can just update and it should work well.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.


#5

This worked! Thanks!


#6

You are welcome @seanoverall! :slight_smile:

Kind Regards, Roman.