The Rest API Did not behave correctly

#308445
  • Resolved Mike
    Rank Math free

    Hello Support;
    I’m having a problem with the Rank Math Plugin, As soon as I activate it, I get this error in site health check ( The Rest API did not behave correctly ).
    When I write a post and update it, I get the error ( The response is not a valid JSON response.)
    Then Rank Math gives error ( There are 1 Post with no focus keyword set. )
    Even though I set the focus keyword and got the 89/100 score with all green.

    And now if I just go to the post I get the error ( The response is not a valid JSON response.)

    I think its a bug.

    Please help.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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: https://www.youtube.com/watch?v=FcIWRhcUP2c

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

    If the issue persists, 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.
    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/

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

    We really look forward to helping you.

    Mike
    Rank Math free

    Hello,

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

    Thank you.

    Mike
    Rank Math free

    I perform all the trouble shooting tasks, but the problem still remains.

    Please Help.

    Thanks

    Hello,

    Please also include your WordPress admin URL in the Sensitive Data section so we could further investigate the issue.

    Looking forward to helping you with this one.

    Mike
    Rank Math free

    The problem has been resolved, I double checked and found, I had a security directive in nginx.conf file that was causing the problem.
    Secondly, When I installed WordPress I had to disable few things including Rest API in order to secure it.

    Now Its all good.

    Thanks

    Hello,

    We are super happy that your issue has been resolved.

    If you 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 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this ticket.