Critical Error

#585958
  • Resolved Anonymous
    Rank Math free

    When I added Rankmath Pro to this website it caused it to critical error whenever we tried to do anything like update a price. It seemed to be ok when we deactivated Pro and just used Free, but we have this morning experienced the free version causing the site to break too. Any ideas, any help? We really don’t want to have to go back to Yoast as we love Rankmath!

    Error message says this;

    Hi!

    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://www.the-roof-shop.co.uk/) and check for any visible issues. Next, visit the page where the error was caught (https://www.the-roof-shop.co.uk/wp-admin/post.php) 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.

    https://www.the-roof-shop.co.uk/wp-login.php?action=enter_recovery_mode&rm_token=eoFDDQWzFJ6eVjWn9nsW8u&rm_key=2j4Bcm3uP9WxUoirNw9hUN

    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.9.7
    Current theme: Nettl Divi Child (version )
    Current plugin: Rank Math SEO (version 1.0.116)
    PHP version 8.0.27

    Error Details
    =============
    An error of type E_ERROR was caused in line 262 of the file /var/www/htdocs/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php. Error message: Uncaught ArgumentCountError: Too few arguments to function RankMath\Instant_Indexing\Instant_Indexing::before_save_post(), 3 passed in /var/www/htdocs/wp-includes/class-wp-hook.php on line 307 and exactly 4 expected in /var/www/htdocs/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:262
    Stack trace:
    #0 /var/www/htdocs/wp-includes/class-wp-hook.php(307): RankMath\Instant_Indexing\Instant_Indexing->before_save_post()
    #1 /var/www/htdocs/wp-includes/plugin.php(189): WP_Hook->apply_filters()
    #2 /var/www/htdocs/wp-includes/post.php(4388): apply_filters()
    #3 /var/www/htdocs/wp-includes/post.php(4789): wp_insert_post()
    #4 /var/www/htdocs/wp-admin/includes/post.php(426): wp_update_post()
    #5 /var/www/htdocs/wp-admin/post.php(227): edit_post()
    #6 {main}
    thrown

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math support. I’m sorry for the inconvenience.

    We know about this issue and we’ve already fixed it in our latest beta version of the plugin. However, this version is not yet officially released.

    You can try this beta update and see if it resolves your issue. To do that, you need to enable the Beta update option by following this guide: https://rankmath.com/kb/version-control/#beta-updates

    If you don’t see an update available, please go to Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients. Then, clear your caches, server, and WordPress and check again.

    You can disable the Beta updates once you update to the latest version and if the issue is gone.

    We hope this helps you. Please let us know if you have any other questions or concerns.

    Thank you for choosing Rank Math.

    Anonymous
    Rank Math free

    That’s Great! Thank you! We’ll give it a go.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Critical Error’ is closed to new replies.