Publishing failed. The response is not a valid JSON response.

#67772
  • Resolved Geon George
    Rank Math free

    Whenever I click publish I get:
    Publishing failed. The response is not a valid JSON response.

    When I edit meta I get:
    Updating failed. The response is not a valid JSON response.

    The reason upon investigation I saw was:
    https://<site>.com/wp-json/rankmath/v1/updateMeta?_locale=user was returning 404 from litespeed serve

    It was not just that, but all wp-json/v2 API calls like
    https://<site>/wp-json/wp/v2/taxonomies/post_tag?context=edit&_locale=user

    I’m on cyber panel with LiteSpeed server.
    Using the Gutenberg editor, WordPress 5.4.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    We have seen in other users that issue and usually, they are caused when something is blocking access to the WordPress API REST.

    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/

    Please let us know if you find the culprit.

    If you try it and you still have the issue even with just Rank Math enabled and using the default theme, I would recommend contacting your hosting support, to check if something is blocking the WordPress API REST.

    Please let us know if you find the culprit.

    Looking forward to helping you.

    Just for anyone else with the same error:

    This solved my issue: https://www.basezap.com/solved-404-error-on-wordpress-website-on-litespeed-webserver/

    Solved

    Alberto
    Rank Math business

    Hello,

    Glad to see you were able to solve it. And thank you for sharing your solution here, I am sure it will be really useful for a lot of users.

    Looking forward to help you.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.