Error: Updating failed. The response is not a valid JSON response.

#1061354
  • Resolved Svetlin Dimitrov
    Rank Math free

    Hello,

    The following error is received during page update: “Updating failed. The response is not a valid JSON response.”.
    It may be caused by a lot of reasons, and during testing, I found the following in the debug.log, which leads to the conclusion that the error might be caused by Rank Math SEO.

    [03-Jul-2025 10:01:11 UTC] PHP Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /home/usrname234/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-analytics-common.php:338
    Stack trace:
    #0 /home/usrname234/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-analytics-common.php(338): abs()
    #1 /home/usrname234/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-analytics-common.php(96): RankMath\Analytics\Analytics_Common->get_analytic_block()
    #2 /home/usrname234/public_html/wp-includes/class-wp-hook.php(324): RankMath\Analytics\Analytics_Common->dashboard_widget()
    #3 /home/usrname234/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #4 /home/usrname234/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #5 /home/usrname234/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
    #6 /home/usrname234/public_html/wp-content/plugins/seo-by-rank-math/includes/rest/class-admin.php(145): RankMath\Rest\Admin->do_action()
    #7 /home/usrname234/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): RankMath\Rest\Admin->dashboard_widget_items()
    #8 /home/usrname234/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request()
    #9 /home/usrname234/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch()
    #10 /home/usrname234/public_html/wp-includes/rest-api.php(459): WP_REST_Server->serve_request()
    #11 /home/usrname234/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded()
    #12 /home/usrname234/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #13 /home/usrname234/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #14 /home/usrname234/public_html/wp-includes/class-wp.php(418): do_action_ref_array()
    #15 /home/usrname234/public_html/wp-includes/class-wp.php(818): WP->parse_request()
    #16 /home/usrname234/public_html/wp-includes/functions.php(1342): WP->main()
    #17 /home/usrname234/public_html/wp-blog-header.php(16): wp()
    #18 /home/usrname234/public_html/index.php(17): require('/home/izpbrxekz...')
    #19 {main}
    thrown in /home/usrname234/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-analytics-common.php on line 338

    Thank you in advance.

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

    We apologize for the issue you are facing with the error message "Updating failed. The response is not a valid JSON response." This error can indeed be caused by various factors, and it seems you have identified a potential conflict with the Rank Math SEO plugin based on the debug log.

    To troubleshoot this issue, we recommend the following steps:

    1. Check for Plugin Conflicts: Temporarily deactivate other plugins to see if the issue persists. If the error goes away, reactivate the plugins one by one to identify the conflicting plugin.

    2. Update Rank Math: Ensure that you are using the latest version of the Rank Math plugin. Sometimes, updating to the latest version can resolve compatibility issues.

    3. Clear Cache: Clear your site cache and browser cache. If you are using a caching plugin, make sure to clear its cache as well.

    4. Debugging: Since you have a PHP Fatal error in your log, it may be beneficial to check if there are any updates or patches available for Rank Math that address this specific error. You can also try disabling any custom code snippets that might be affecting the plugin’s functionality.

    5. Check Server Configuration: Sometimes server settings can cause issues with JSON responses. Ensure that your server is configured correctly to handle REST API requests.

    If these steps do not resolve the issue, please reply to this ticket with your site URL and any additional details about your setup. A human agent from our support team will then be able to assist you further.

    Thank you for bringing this concern to our attention!

    Sources:
    How to Fix ‘Automatic Update is Unavailable for this Plugin’ Error in Rank Math » Rank Math

    Hello,

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

    We just released a stable update that fixed the bug. The latest stable version of the Rank Math PRO plugin is v3.0.91, and the Free plugin is v1.0.248.

    If you’re not able to see the update, please clear Rank Math’s transients from WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients, and see if that works for you: https://rankmath.com/kb/rank-math-status-and-tools/#rank-math-transients

    You can also manually update the plugin by following this guideline: https://rankmath.com/kb/update-rank-math-manually/

    Hope this helps, and please do not hesitate to let us know if you need our assistance with anything else.

    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 ‘Error: Updating failed. The response is not a valid JSON response.’ is closed to new replies.