RankMath generate a critical error on the website.

#599681
  • Resolved Anonymous
    Rank Math free

    Hello
    each time I add your plugin to the website and activate it generates the following error message “There has been a critical error on this website. Please check your site admin email inbox for instructions.”
    On another website of a friend of mine, it is working fine.
    Can you help?
    Thanks

Viewing 8 replies - 1 through 8 (of 8 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 an email from WordPress with the details about the error. 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.

    You can trigger again the error so the log would be updated.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Thank you for your reply
    Please find attached the error log I got when activating the RankMath plugin
    https://drive.google.com/file/d/182UkQPntDhB3WzK-3cusaXoppW7Ju00J/view?usp=sharing

    PHPinfo https://adesyon.com/_info_.php

    Looking forward to hearing from you soon.
    Thank you for your help

    Hello,

    The issue seems to be related to the action scheduler. Please follow this guide and ensure that you first take a backup of your database:

    1. Please follow the steps from this KB guide to fix the issue:
    https://rankmath.com/kb/fatal-error-after-1-0-49-update/

    2. Please follow only the first 2 steps and clear your caches. The following steps mentioned in the article are for advanced users.

    Here’s a video screencast:
    https://i.rankmath.com/KStFug

    Please clear all the cache, including the server after following the above process.

    As for the rest of the errors, I noticed a constant PHP Deprecated issue.

    Please make sure that you are using the preferred PHP version of your website and we recommend the stable version PHP 8. You may contact your hosting provider with regard to updating your PHP version.

    Please refer to this guide about our plugin’s system requirements: https://rankmath.com/kb/requirements/

    Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.

    Anonymous
    Rank Math free

    Thanks Jeremy,
    I have followed your steps but the problem was not solved.
    Check here: https://vimeo.com/843932149/1ddf233e1c

    I had to disable it again.

    [10-Jul-2023 15:56:46 UTC] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/adesyon/public_html/wp-includes/class-wpdb.php:1846
    Stack trace:
    #0 /home/adesyon/public_html/wp-includes/class-wpdb.php(2372): wpdb->print_error()
    #1 /home/adesyon/public_html/wp-includes/class-wpdb.php(3060): wpdb->query(‘SELECT a.action…’)
    #2 /home/adesyon/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(604): wpdb->get_col(‘SELECT a.action…’)
    #3 /home/adesyon/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php(99): ActionScheduler_DBStore->query_actions(Array)
    #4 /home/adesyon/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php(77): ActionScheduler_QueueCleaner->clean_actions(Array, Object(ActionScheduler_DateTime), 20)
    #5 /home/adesyon/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueCleaner.php(214): ActionScheduler_QueueCleaner->delete_old_actions()
    #6 /home/adesyon/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(229): ActionScheduler_QueueCleaner->clean(300)
    #7 /home/adesyon/public_html/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(130): ActionScheduler_Abstract_QueueRunner->run_cleanup()
    #8 /home/adesyon/public_html/wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run(‘WP Cron’)
    #9 /home/adesyon/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
    #10 /home/adesyon/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #11 /home/adesyon/public_html/wp-cron.php(188): do_action_ref_array(‘action_schedule…’, Array)
    #12 {main}
    thrown in /home/adesyon/public_html/wp-includes/class-wpdb.php on line 1846
    [10-Jul-2023 15:57:47 UTC] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/adesyon/public_html/wp-cron.php:129
    Stack trace:
    #0 {main}
    thrown in /home/adesyon/public_html/wp-cron.php on line 129

    Hello,

    What is failing on the website is a default PHP function called error_log() which WordPress uses and we also make use of it to show the error log to the users in the Status & Tools section of the website.

    This error indicates that this default function is not working in the PHP runtime environment. You can check this with your hosting provider and ask them to make sure this is enabled on this particular server configuration.

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Anonymous
    Rank Math free

    Excellent, our hosting provider enabled the error_log() and now it’s working
    Thank you for your help

    Anonymous
    Rank Math free

    Excellent support

    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 8 replies - 1 through 8 (of 8 total)

The ticket ‘RankMath generate a critical error on the website.’ is closed to new replies.