Fatal PHP Errors in ‘debug.log’ and other strange behaviors

#787294
  • Danilo B
    Rank Math free

    Hello,

    I am writing to you regarding a PHP Fatal error that is being caused by your plugin on the website I am developing and maintaining. The error message states:


    [13-Apr-2024 00:00:01 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/html/wp-includes/formatting.php:3507
    Stack trace:
    #0 /var/www/html/wp-includes/class-wp-hook.php(324): convert_smilies()
    #1 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #2 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/links/class-links.php(171): apply_filters()
    #3 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/links/class-links.php(59): RankMath\Links\Links->process()
    #4 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/links/class-links.php(154): RankMath\Links\Links->save_post()
    #5 /var/www/html/wp-includes/class-wp-hook.php(324): RankMath\Links\Links->cron_job()
    #6 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #7 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #8 /var/www/html/wp-cron.php(191): do_action_ref_array()
    #9 {main}

    This error has caused several crashes and spikes on the website due to memory leaks.

    Additionally, I have encountered a second bug that prevents me from debugging effectively. Whenever I disable the plugin, I am unable to edit ANY pages/posts from the admin dashboard. I am just greeted with a blank screen. However, when I re-activate the plugin, everything works as expected.

    I hope you’ll have a solution for this because my website has been crashing frequently, and although I cannot be certain that your plugin is causing the crashes, I am unable to rule it out due to the latter bug I described.

    Thank you in advance for your assistance.

    Best regards,
    Danilo

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

    I apologize for the issues you are facing with the Rank Math plugin on your website. The PHP Fatal error you mentioned is related to a TypeError caused by the plugin. This error can lead to crashes and memory leaks on your website.

    To address this issue, please follow the steps outlined in our knowledge base article about Fatal Errors happening after the 1.0.49 update. You can find detailed instructions on how to fix this specific issue by visiting the following link: Fatal Error After 1.0.49 Update – Rank Math.

    If the provided solution does not resolve the problem, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue.

    Best regards.

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    How to Fix Undefined Offset: 0 Warning » Rank Math
    Using Variables in the SEO Title and Description » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    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.

    Let us know how this goes. Also, let us know if you have further questions or concerns.

    Thank you.

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

You must be logged in to reply to this ticket.