critical error

#1068190
  • Resolved Martin Prosek
    Rank Math free

    Second ticket. This is the email I got from WordPress.

    Howdy!

    WordPress has 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://zestifica.com/) and check for any visible issues. Next, visit the page where the error was caught (https://zestifica.com/wp-admin/) 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://zestifica.com/wp-login.php?action=enter_recovery_mode&rm_token=ryONM2684woacrqJDN3Wr7&rm_key=8oVfFhOvY3wLK3fcAU5r4N

    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 6.8.2
    Active theme: Kadence (version 1.2.27)
    Current plugin: Rank Math SEO (version 1.0.248)
    PHP version 8.3.16

    Error Details
    =============
    An error of type E_ERROR was caused in line 540 of the file /home/u682643760/domains/zestifica.com/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php. Error message: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /home/u682643760/domains/zestifica.com/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php:540
    Stack trace:
    #0 /home/u682643760/domains/zestifica.com/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(540): explode()
    #1 /home/u682643760/domains/zestifica.com/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(365): RankMath\Replace_Variables\Post_Variables->get_post_content()
    #2 /home/u682643760/domains/zestifica.com/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(60): RankMath\Replace_Variables\Post_Variables->get_excerpt()
    #3 /home/u682643760/domains/zestifica.com/public_html/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-manager.php(119): RankMath\Replace_Variables\Post_Variables->setup_post_variables()
    #4 /home/u682643760/domains/zestifica.com/public_html/wp-includes/class-wp-hook.php(324): RankMath\Replace_Variables\Manager->setup()
    #5 /home/u682643760/domains/zestifica.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #6 /home/u682643760/domains/zestifica.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #7 /home/u682643760/domains/zestifica.com/public_html/wp-admin/admin-header.php(123): do_action()
    #8 /home/u682643760/domains/zestifica.com/public_html/wp-admin/index.php(137): require_once(‘/home/u68264376…’)
    #9 {main}
    thrown

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

    We apologize for the critical error you are facing with the Rank Math SEO plugin. It seems that there is a type error occurring in the plugin, specifically related to the explode() function, which is expecting a string but is receiving an array instead.

    To troubleshoot this issue, we recommend the following steps:

    1. Check for Plugin Conflicts: Deactivate all other plugins except Rank Math to see if the error persists. If the error goes away, reactivate the plugins one by one to identify which one is causing the conflict.

    2. Update Plugins and Themes: Ensure that all your plugins and themes are updated to their latest versions, as updates often include bug fixes.

    3. Switch to a Default Theme: Temporarily switch to a default WordPress theme (like Twenty Twenty-One) to check if the issue is related to your current theme (Kadence).

    4. Enable Debugging: You can enable debugging in WordPress by adding the following line to your wp-config.php file:

      define( 'WP_DEBUG', true );

      This will provide more detailed error messages that can help in diagnosing the issue.

    5. Repair Action Scheduler: If you suspect that this might be related to the Action Scheduler, you can use our Repair Action Scheduler plugin to fix any issues automatically.

    6. Recovery Mode: Since you received a recovery mode link, you can use it to access your dashboard safely and perform these troubleshooting steps.

    If these steps do not resolve the issue, please reply to this ticket with any additional details or errors you encounter, and a human agent from our support team will assist you further.

    Thank you for bringing this to our attention, and we hope to resolve this issue for you soon!

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    This error usually happens when you have added the variable, but the parameters are outside the actual variable, causing a fatal error from our plugin.

    You may have included a variable in your title or description with this format:
    %randomword%(word1, word2, word3)%

    Instead of:
    %randomword(word1, word2, word3)%

    If you’re unable to find it, 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/

    Let us know how it goes. 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 2 replies - 1 through 2 (of 2 total)

The ticket ‘critical error’ is closed to new replies.