Critical error occurs when updating content

#584747
  • Resolved Anonymous
    Rank Math free

    Whenever the Rank Math plugin is activated and I want to update content, a critical error occurs.

    I get the following information (its in Spanish because my WordPress setup users Spanish)

    >> WordPress tiene una característica incluida que detecta cuando un plugin o tema provoca un error fatal en tu sitio, y te avisa con este correo electrónico automatizado.

    En este caso, WordPress ha detectado un error con uno de tus plugins, Rank Math SEO.<<

    It says: “WordPress has a feature that detects when a plugin or theme causes a fatal error on your website and informs you with an automated email.

    In this dase WordPress has detected an error with one of your plugins, Rank Math SEO”

    The error does not happen when Rank Math SEO is deactivated.

    I have tried increasing PHP memory limit to 128MB, but that didn’t help.

    Thank you for reading this and I’d be grateful if you could help me solve this issue.

    Kind regards.

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    You must have received the details about the error as well in the email below that message. Please share it with us here so we can check and assist you further.

    If you haven’t received the email with the error code, you can follow this guide to enable debugging in WordPress
    https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, and they will help you locate the log file.

    Having an error log will help us determine what is causing the critical error on your website.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Hi Reinelle and thank you for getting back to me.
    Follows the more detailed error description. Parts are in Spanish, but it should be obvious what these parts mean. I have nevertheless added my translation in square brackets [] where I think it may be helpful.

    WordPress versión 6.2.2
    Tema activo: Avada (versión 7.10.1)
    Plugin actual: Rank Math SEO (versión 1.0.116)
    PHP versión 8.0.28

    Detalles del error [Error details]
    ==================
    [Type of error E_ERROR on line 410 of file…] Se ha producido un error del tipo E_ERROR en la línea 410 del archivo /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php.

    [Error message] Mensaje de error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, bool given in /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:410
    Stack trace:
    #0 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(410): array_reverse()
    #1 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(325): RankMath\Instant_Indexing\Instant_Indexing->api_submit()
    #2 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/class-wp-hook.php(308): RankMath\Instant_Indexing\Instant_Indexing->save_post()
    #3 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/post.php(4704): do_action()
    #6 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/post.php(4817): wp_insert_post()
    #7 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-admin/includes/post.php(439): wp_update_post()
    #8 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-admin/post.php(227): edit_post()
    #9 {main}
    thrown

    Hello,

    Thank you for sharing the error log.

    Our dev team released a Beta version of the plugin that fixes most of the recent issues regarding Instant Indexing.

    Please try updating to the latest beta version of Rank Math 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 (which will be released soon) and if the issue is gone.

    Let us know how this goes.

    Thank you.

    Anonymous
    Rank Math free

    Hi Reinelle,
    thanks for getting back so quickly. Unfortunately the method you describe did not help. The error message looks pretty much the same:

    WordPress versión 6.2.2
    Tema activo: Avada (versión 7.10.1)
    Plugin actual: Rank Math SEO (versión 1.0.117-beta)
    PHP versión 8.0.28

    Detalles del error
    ==================
    Se ha producido un error del tipo E_ERROR en la línea 410 del archivo /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php. Mensaje de error: Uncaught TypeError: array_reverse(): Argument #1 ($array) must be of type array, bool given in /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php:410
    Stack trace:
    #0 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(410): array_reverse()
    #1 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-instant-indexing.php(325): RankMath\Instant_Indexing\Instant_Indexing->api_submit()
    #2 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/class-wp-hook.php(308): RankMath\Instant_Indexing\Instant_Indexing->save_post()
    #3 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/post.php(4704): do_action()
    #6 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-includes/post.php(4817): wp_insert_post()
    #7 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-admin/includes/post.php(439): wp_update_post()
    #8 /mnt/web120/c2/06/511652806/htdocs/STRATO-apps/wordpress_02/app/wp-admin/post.php(227): edit_post()
    #9 {main}
    thrown

    This is very strange because I have a different website with basically the same setup – same hosting provider, same theme and plugins – where Rank Math SEO works flawlessly…

    Hello,

    In this case, we might need to take a closer look at the settings. 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/

    Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Critical error occurs when updating content’ is closed to new replies.