Error thrown when looking for update in WP

#38875
  • Resolved Austyn Cohen
    Rank Math free

    Howdy!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Rank Math SEO.

    First, visit your website (https://youronlinebutcher.com/) and check for any visible issues. Next, visit the page where the error was caught (https://youronlinebutcher.com/wp-admin/update-core.php?force-check=1) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.3.2
    Current theme: Rey Child (version 1.0.0) Current plugin: Rank Math SEO (version 1.0.40.2) PHP version 7.3.6

    Error Details
    =============
    An error of type E_ERROR was caused in line 33 of the file /data/web/virtuals/240644/virtual/www/domains/youronlinebutcher.com/wp-content/plugins/seo-by-rank-math/includes/admin/class-admin-helper.php. Error message: Uncaught Error: Call to undefined function RankMath\Admin\get_home_path() in /data/web/virtuals/240644/virtual/www/domains/youronlinebutcher.com/wp-content/plugins/seo-by-rank-math/includes/admin/class-admin-helper.php:33
    Stack trace:
    #0 /data/web/virtuals/240644/virtual/www/domains/youronlinebutcher.com/wp-content/plugins/seo-by-rank-math/includes/settings/general/htaccess.php(12): RankMath\Admin\Admin_Helper::get_htaccess_data()
    #1 /data/web/virtuals/240644/virtual/www/domains/youronlinebutcher.com/wp-content/plugins/seo-by-rank-math/includes/admin/class-options.php(166): include(‘/data/web/virtu…’)
    #2 /data/web/virtuals/240644/virtual/www/domains/youronlinebutcher.com/wp-includes/class-wp-hook.php(288): RankMath\Admin\Options->register_option_page(”)
    #3 /data/web/virtuals/240644/virtual/www/domains/youronlinebutcher.com/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
    #4 /data/web/virtuals/240644/virtual/www/domains/youronlinebutcher.com/wp-includes/plugin.php(478): WP_Hook->do_acti

    • This topic was modified 4 years, 9 months ago by Michael Davis.
    • This topic was modified 4 years, 9 months ago by Austyn Cohen.
Viewing 7 replies - 16 through 22 (of 22 total)
  • This is an isolated issue JUST with this single website. All of our other websites (almost 100) are perfect after the latest update. This is the only one with an issue.

    Please visit the update page and force check for updates using the “check again” button.

    Thanks Rank Math for the amazing plugin and support. 🙂

    I hope you can fix this issue for us, on this single site.

    Hello,

    I have logged in to your site and made a small change in one of the plugin files to fix the issue, now the error doesn’t show up anymore.

    For future reference, I added the following code right before the line mentioned in the error message (seo-by-rank-math/includes/admin/class-admin-helper.php line 33):

    if ( ! function_exists( 'get_home_path' ) ) {
    	require_once ABSPATH . 'wp-admin/includes/file.php';
    }

    We will investigate this issue and possibly include the same fix in one of the upcoming updates.

    Thank you for bringing this to our attention. If there’s anything else, please let us know.

    Thank you so much, it seems to be fixed.

    When the next version of RM is released, will I need to do anything? Does your code stay persistent during and through updates?

    Todd
    Rank Math free

    Hi Austyn,

    With the next update, we will include a fix for the issue you are facing so there is no need to worry about adding the code once again.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Thanks so much Rank Math, I will leave a review on WordPress, and mark this ticket as resolved.

    Hi Austyn,

    We really appreciate the review 🙂

    Please let us know if we can provide any other help.

    Thank you.

    Hello

    We released a beta update that fixes the issue you mentioned.

    Please opt-in by enabling this option and updating the plugin manually:
    https://rankmath.com/kb/version-control/#beta-updates

    Once updated, please update here if the issue’s resolved.

    Looking forward to hearing from you. Thank you.

    P.S. You can read the changelog here:
    https://rankmath.com/changelog/#beta

Viewing 7 replies - 16 through 22 (of 22 total)

The ticket ‘Error thrown when looking for update in WP’ is closed to new replies.