Critical error on WP Search when Rankmath is activated

#1057430
  • Resolved Ryan
    Rank Math free

    My WP site will throw a critical error when doing a search with the WP search bar.

    I used the “Health Check & Troubleshooting” to first find out that on a clean WP the search works again.

    After that I started to deactivate each plugin. When I turned off RM then the search bar works as normal.

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

    We apologize for the issue you are facing with the critical error on your WordPress site when Rank Math is activated. It seems like there might be a conflict between Rank Math and another plugin or theme on your site.

    To further investigate this issue, we recommend performing a conflict check using the Health Check plugin, which you have already done. Here are the steps to confirm if it’s a bug or just a theme/plugin conflict:

    1. Log into your WordPress Administrator account and navigate to the dashboard.
    2. Go to Plugins in the WordPress menu, and then click on Add New.
    3. Search for ‘Health Check’ in the search bar and click Install Now on the Health Check & Troubleshooting plugin.
    4. Activate the Health Check Plugin.
    5. Hover over Tools in the WordPress Menu and click on Site Health to check for any issues.

    If you find that the issue persists even after deactivating other plugins, it may be beneficial to check for updates for both Rank Math and your other plugins or themes. Sometimes, an outdated version can cause conflicts.

    If you would like more comprehensive assistance, we also offer a professional setup service to ensure your plugin setup is fully correct and adheres to the latest SEO standards. You can find more information about this service at Rank Math Professional Setup Service.

    Thank you for raising this concern, and we hope this helps resolve the issue! If you need further assistance, please reply to this ticket, and a human agent from our support team will assist you further.

    Sources:
    Confirming a Theme/Plugin Conflict With Rank Math
    Confirming a Theme/Plugin Conflict With Rank Math

    Ryan
    Rank Math free

    There are only 3 things mentioned:

    1. remove inactive plugins
    2. old sql server, suggested to upgrade the db to MariaDB 10.5
    3. use of persistent object caching.

    Removed inactive plugins but problem still exists.
    Old sql database that would lead to this problem?

    Not sure how caching would resolve the search problem throwing a WP critical error. I don’t think this has anything to do with the error & Rankmath.

    Hello,

    Thank you for contacting us. We apologize for any inconvenience this issue may have caused.

    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.

    Ryan
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Ryan
    Rank Math free

    Hi,

    Please check the “sensitive data” section for the log capture.

    Best regards,

    Ryan

    Hello,

    Please head over to WordPress Dashboard > Rank Math > General Settings > Breadcrumbs and change the “Search Results Format” to: Search for %s

    Please note that the %s should not be changed; only the other portion of the text can be modified.

    Once done, clear your website’s cache and see if that fixes the issue.

    Let us know how that goes. Looking forward to helping you.

    Thank you.

    Ryan
    Rank Math free

    Our RM breadcrumb functions was turned off.

    When turning on I see the that the default search page format is: Search for ‘%’

    You want me to remove the single quotes?

    Ryan
    Rank Math free

    Changed the breadcrumbs search format but the same WP “critical error” is thrown.

    Hello,

    Please replace what you have there with Search for %s, scroll down and save the changes.

    Then clear your website’s cache and check the issue again.

    Let us know how that goes.

    If the issue persists, we might need to take a closer look at your site.

    Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    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/

    We really look forward to helping 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 9 replies - 1 through 9 (of 9 total)

The ticket ‘Critical error on WP Search when Rankmath is activated’ is closed to new replies.