Criticial Error when creating new post / 1.0.116

#582277
  • Resolved Anonymous
    Rank Math free

    Hi there! Since yesterday I get a critical errors when I try to open a new post (editing of existing ones works fine). This is what the debug.log (WP5.9.7) says:

    [01-Jun-2023 07:19:10 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function RankMath\Instant_Indexing\Instant_Indexing::before_save_post(), 3 passed in /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/class-wp-hook.php on line 307 and exactly 4 expected in /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:262
    Stack trace:
    #0 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/class-wp-hook.php(307): RankMath\Instant_Indexing\Instant_Indexing->before_save_post(Array, Array, Array)
    #1 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/post.php(4388): apply_filters(‘wp_insert_post_…’, Array, Array, Array)
    #3 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-admin/includes/post.php(700): wp_insert_post(Array, false, false)
    #4 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-admin/post-new.php(66): get_default_post_to_edit(‘post’, true)
    #5 {main}
    thrown in /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php on line 262

    I disabled instant indexing of articles and pages, now it works again – but that is not a real solution to the problem. Any ideas where the problem lies and what I can do about it?

    Thanks in advance and greetings from Germany, Gabi

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,
    
    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
    
    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
    
    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/
    
    Here is a video you can follow as well:

    
    Only the site admin would know and your users won’t be affected by this troubleshooting.
    
    If the issue persists, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    
    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section
    
    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
    https://wordpress.org/plugins/temporary-login-without-password/
    
    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
    https://wordpress.org/plugins/wp-security-audit-log/
    
    Please do take a complete backup of your website before sharing the information with us.
    
    We really look forward to helping you.

    Anonymous
    Rank Math free

    Hi, Jaideep – thanks for assisting me! I used the troubleshooting guide as indicated with the result that Rank Math must be the culprit. All other plugins were deactivated, I used the standard theme and I still get a critical error when I open a new post (editing of existing one is possible). This is the debug log:

    [02-Jun-2023 07:46:37 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function RankMath\Instant_Indexing\Instant_Indexing::before_save_post(), 3 passed in /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/class-wp-hook.php on line 307 and exactly 4 expected in /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:262
    Stack trace:
    #0 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/class-wp-hook.php(307): RankMath\Instant_Indexing\Instant_Indexing->before_save_post(Array, Array, Array)
    #1 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-includes/post.php(4388): apply_filters(‘wp_insert_post_…’, Array, Array, Array)
    #3 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-admin/includes/post.php(700): wp_insert_post(Array, false, false)
    #4 /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-admin/post-new.php(66): get_default_post_to_edit(‘post’, true)
    #5 {main}
    thrown in /is/htdocs/wp10634233_P26W4PWYLR/www/usaresp_14/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php on line 262

    Does that provide any hints? Greetings from Germany, Gabi

    Anonymous
    Rank Math free

    Hello,

    ​Thank you for reporting the issue. We’ve identified a potential bug in our Instant Indexing module causing this issue on some setups.

    As a temporary solution, we recommend disabling the Instant Indexing module in our plugin. This should allow you to create new posts without any issues.

    Our team is actively working on a fix which will be available in the next plugin update. We appreciate your understanding and patience in this matter.

    Feel free to reach out if you have any other concerns.

    Anonymous
    Rank Math free

    Thanks for the update!

    Hello,

    You may keep and eye on our changelog from here: https://rankmath.com/changelog/free/

    Meanwhile, please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

    Hello,

    We released a quick Beta update you can try to see if that helps.

    Please enable the Beta update by following this:
    https://rankmath.com/kb/version-control/#beta-updates

    beta update

    If you are unable to see an update, please clear Rank MathÕs transients from:
    WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients
    remove transients rank math

    Please clear the caches, server, and WordPress after updating.

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

    We are here to assist. Thank you.

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

The ticket ‘Criticial Error when creating new post / 1.0.116’ is closed to new replies.