Rankmath Error Logs Reported by Web Hosting

#709783
  • Resolved Raman Sharma
    Rank Math free

    Here are some error logs reported by my web host and asked to contact support. I am even facing issues with updating posts.

    Here are the logs:

    WordPress database error Table ‘l3e5whl_lxnn.wp_rank_math_analytics_objects’ doesn’t exist for query SELECT * FROM wp_rank_math_analytics_objects WHERE object_id = ‘3346’ LIMIT 0, 1 made by require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array(‘parse_request’), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, RankMathAnalyticsRest->get_post, RankMathAnalyticsPosts->get_post, RankMathAdminDatabaseQuery_Builder->one

    [28-Dec-2023 03:48:09 UTC] PHP Fatal error: Uncaught Error: Class ‘RankMathPost’ not found in /home/l3e5whl/public_html/wp-content/themes/allusefulinfo/index.php:76
    Stack trace:
    #0 /home/l3e5whl/public_html/wp-includes/template-loader.php(106): include()
    #1 /home/l3e5whl/public_html/wp-blog-header.php(19): require_once(‘/home/l3e5whl/p…’)
    #2 /home/l3e5whl/public_html/index.php(17): require(‘/home/l3e5whl/p…’)
    #3 {main}
    thrown in /home/l3e5whl/public_html/wp-content/themes/allusefulinfo/index.php on line 76

    Please let me know why this is happening and how it can be fixed. This is a critical issue for me.

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

    I’m sorry to hear about the issues you’re facing with Rank Math. It seems like there are some critical errors occurring on your website related to the Rank Math plugin. The error logs you’ve shared indicate that there are issues with the Rank Math Analytics and also a fatal error related to the ‘RankMathPost’ class not being found.

    The error related to the Rank Math Analytics objects not existing in the database could be due to a database table missing or not being created during the plugin update process.

    The PHP fatal error related to the ‘RankMathPost’ class not being found in your theme’s index.php file is likely due to a conflict or an issue with the theme’s compatibility with Rank Math.

    To address these issues, I recommend following the steps outlined in our knowledge base article on resolving Rank Math Analytics related issues: Resolving Rank Math Analytics Related Issues

    Additionally, you may need to make your theme Rank Math compatible by creating a dedicated rank-math.php file in your theme’s folder. You can find detailed instructions on how to do this in our guide: How to Make Your Theme Rank Math Compatible

    If you have any further questions or need assistance with these steps, please feel free to reply to this ticket, and one of our support agents will be happy to assist you further.

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

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math
    Resolving Rank Math Analytics Related Issues » Rank Math
    Why Rank Math Settings Are Not Getting Saved? » Rank Math
    How to Make Your Theme Rank Math Compatible » Rank Math

    Hello,

    From the error log, the missing database tables are for Google Analytics.

    To create the table, you may need to connect your site to your Google account in Rank Math > General Settings > Analytics:
    https://rankmath.com/kb/analytics/

    Regarding the saving issue, please check if you are using a Firewall as it may prevent saving the changes.

    If you are using a Firewall, please whitelist this route:

    /wp-json/rankmath/v1/updateMeta
    

    You can check this link for more information:
    https://rankmath.com/kb/meta-data-not-saving/

    Let us know how this goes.

    But, Rankmath Analytics Module is not even enabled inside the plugin. Then why is it giving the error. Please clarify.

    Analytics module

    Hello,

    Please head over to your WordPress Dashboard > Rank Math > Status & Tools > Database Tools and click the Recreate Missing Database Tables button and see if that works for you: https://rankmath.com/kb/rank-math-status-and-tools/#recreate-missing-database-tools

    Please note that some options are only available when you enable the Advanced Mode in Rank Math. If Database Tools is not showing, please switch to the Advanced Mode: https://rankmath.com/kb/switch-from-easy-to-advanced-mode/

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

    Thank you.

    I am already using the Advanced mode. When I clicked on that Re-create tables button, it gave me an unnamed error as shown in the below picture.
    Error

    Hello,

    This issue could be caused by conflicting plugins/themes on your website. Kindly make sure you are using the latest version of all the plugins and themes, please update if not yet.

    Here’s a guide for troubleshooting further if the issue persists:
    https://rankmath.com/kb/check-plugin-conflicts/

    You can also follow the steps in this video:
    https://www.youtube.com/watch?v=FcIWRhcUP2c

    Only the site admin would know and your users won’t be affected by this troubleshooting.

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

    Thank you.

    I tried deactivating and activating all the plugins one by one and even all at a time but that error after clicking on Re-create tables button persists.

    Does it mean Rankmath having conflicts with my WordPress theme? But, why it suddenly started having conflicts when I didn’t update my theme. However, such issues are happening from when I updated Rankmath plugin last version.

    Alhan
    Rank Math free

    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/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    I have added the WordPress admin credentials for you to check. Please take a closer look and let me know.

    Alhan
    Rank Math free

    Hello,

    We logged in to your site using the provided access details in the sensitive data section of this ticket.

    Upon checking with the debugging mode enabled and also with the Health Check and Troubleshoot plugin we were able to replicate the issue just on your setup.

    This issue seems to be your setup specific as we are not able to replicate it at our end.

    We have forwarded your ticket to the development team and they will be able to fix this with a patch on your site.

    However we request you to take a complete backup of the site files and database and also share the FTP/SFTP details so that we can proceed with the resolution for this.

    We really look forward to helping you.

    Thank you.

    Hello,

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

    Thank you.

    I updated the data you requested. I am using a custom WordPress theme. If you encounter any theme-related issues, please let me know about them. If possible please fix the issues as soon as possible.

    Hello,

    We just confirmed you’re using RankMath utility classes in your custom theme, and the class not found error occurs only when RankMath is deactivated, because the classes are unavailable to the WordPress app.

    When I try to enable the Analytics module, it’s never enabled (trying to reproduce the error of missing table), but it seems your CORs|cloudflare settings are behind this (see image below). Could you try and tweak your preflight(OPTIONS) request settings to maybe match those of your GET and POST requests and then we will take another look.

    Error in the browser image:

    Browser image error log

    We really look forward to having this issue resolved.

    Thank you

    So, you mean this is purely a Cloudflare/Hosting-related issue? But, the thing I am unable to understand that why all this started happening after updating the Rankmath to the new version?

    I even contacted my web host, they are saying that this is a plugin issue rather than a platform problem.

    What should I do now?

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

The ticket ‘Rankmath Error Logs Reported by Web Hosting’ is closed to new replies.