Hello Team,
I am using Newspaper 7 theme. I have updated to the latest version of wordpress 4.9.8. After that whenever I click on publish or update in a post, it gives me an 504 Gateway error. The post gets edited or published but I land on the 504 gateway error page after 60 secs of clicking on Publish or Update.
So I updated the wp-config.php file with debug to true. And this is the error message that comes at the top of the page now.
Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /opt/bitnami/apps/wordpress/htdocs/wp-includes/functions.php on line 4161
Deprecated: Non-static method wp_horoscope::horoscope_init() should not be called statically in /opt/bitnami/apps/wordpress/htdocs/wp-includes/class-wp-hook.php on line 286
Can someone please help me with this?
I have deactivated the daily horoscope plugin and the second error does not come up anymore. There is an android Plugin which I cannot deactivate as the android app works through this plugin.
I just managed to access the error_log file and this is what I see
[proxy_fcgi:error] [pid 9893:tid 140602834302720] [client 172.31.37.172:51434] AH01071: Got error ‘PHP message: PHP Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /opt/bitnami/apps/wordpress/htdocs/wp-includes/functions.php on line 4161\n’
Need help please.
Thanks,
Regards,
Shana
-
This topic was modified 7 years by
shana@intellicred.com.
Hi,
From what I can find online that first notice would be caused by plugins
– https://stackoverflow.com/questions/10325238/notice-register-uninstall-hook-was-called-incorrectly
– https://wordpress.stackexchange.com/questions/242006/register-uninstall-hook-vs-uninstall-php-which-one-is-better-way-to-handle-p
If you indeed use theme version 7 you should consider to update. Such an old theme version may not work properly with the latest WordPress, maybe with some plugins as well.
The latest theme version is 9.0.1, there will be another update soon.
Problems that appeared in the theme when WordPress was updated were resolved in theme updates.
You can see the changelog of each version at the bottom of this page
– https://themeforest.net/item/newspaper/5489609
Also a theme update guide and best practices notes here
– https://forum.tagdiv.com/how-to-update-the-theme-2/
Thanks