Error thrown when looking for update in WP

  • 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 ( and check for any visible issues. Next, visit the page where the error was caught ( 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 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/ Error message: Uncaught Error: Call to undefined function RankMath\Admin\get_home_path() in /data/web/virtuals/240644/virtual/www/domains/
    Stack trace:
    #0 /data/web/virtuals/240644/virtual/www/domains/ RankMath\Admin\Admin_Helper::get_htaccess_data()
    #1 /data/web/virtuals/240644/virtual/www/domains/ include(‘/data/web/virtu…’)
    #2 /data/web/virtuals/240644/virtual/www/domains/ RankMath\Admin\Options->register_option_page(”)
    #3 /data/web/virtuals/240644/virtual/www/domains/ WP_Hook->apply_filters(”, Array)
    #4 /data/web/virtuals/240644/virtual/www/domains/ WP_Hook->do_acti

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.


    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?

    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.


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

    Please opt-in by enabling this option and updating the plugin manually:

    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:

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

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