• Hello,

    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?

    Thanks,

    Sasidhar

Viewing 11 replies - 1 through 11 (of 11 total)
  • There is some code or plugin which is using a deprecated method wp_horoscope If this is a plugin, try to disable it and test

    • This reply was modified 6 years, 5 months ago by luckychingi.
    Thread Starter Sasidhar Parvathaneni

    (@sasi2212)

    Thank You for the quick reply. I have deactivated the plugin but I still have the issue. The plugin name is “Daily Horoscope”. Do you think I need to delete the plugin and check?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I recommend asking at https://www.ads-software.com/support/plugin/the-daily-horoscope#new-post so the plugin’s developers and support community can help you with this.

    Thread Starter Sasidhar Parvathaneni

    (@sasi2212)

    Thanks Steven. I have posted it there. But the last thread someone was helped there was 2 years ago. So I would leave this thread here open so that someone who knows how to resolve this issue can help me.

    Thread Starter Sasidhar Parvathaneni

    (@sasi2212)

    The issue remains even after I uninstall the daily horoscope plugin. There is another plugin called “androapp – Native Android mobile app for wordpress site” which seemed to be the reason for the first error message out of the two. So I have deactivated this app as well and I still have the same problem. When I click on publish on a new post or update on an existing post, the page times out and throws a 504 error after 60 secs.

    Can somebody help please?

    Thread Starter Sasidhar Parvathaneni

    (@sasi2212)

    Please note that the debug errors no longer pop up after these two apps are deactivated. but the 504 time out issue remains.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.

    Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://codex.www.ads-software.com/Debugging_in_WordPress

    You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you cannot access wp-admin, there are other ways to deactivate plugins.

    Thread Starter Sasidhar Parvathaneni

    (@sasi2212)

    I am unable to find the debug.log file in wp-content folder.

    I have this configuration setup in the wp-config.php file.

    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );
    define( ‘WP_DEBUG_DISPLAY’, false );

    If I turn the remove the last line, I see the errors that I posted originally on the wp-admin page on the top. But I cannot find the error logs anywhere. Is there another place where the errors might get saved?

    FYI… I have migrated this site recently to a different host using All-In-One Migration Plugin. And then updated to the latest version of WordPress after which this problem has started.

    Thanks

    Regards
    Sasidhar

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Check the server’s error logs, too. The 504 means that the nginx process is getting disconnected from the PHP process, so there’s probably some fatal PHP error occurring.

    Thread Starter Sasidhar Parvathaneni

    (@sasi2212)

    H Steven,

    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’

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site. You can then use its admin bar menu to turn on/off plugins and themes one at a time.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘register_uninstall_hook was called incorrectly’ is closed to new replies.