Unable to save post meta settings

#996577
  • Resolved Grieve Law
    Rank Math free

    Hello

    I am currently unable to save post meta settings in Rank Math. I have disabled WordFence and checked my server’s firewall settings, which didn’t seem to indicate blocking anything. It appears that I am unable to whitelist URLs there. I’m on a development site at a Cloudways default URL, so it’s not Cloudflare interfering, either.

    The error I’m receiving is a 404 on /wp-json/rankmath/v1/updatemeta?_locale=user with a response of:
    {“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method.”,”data”:{“status”:404}}

    When I try to access the path directly, I get that same error.

    I did try to whitelist the paths in the Wordfence Firewall, as suggested in the KB article, but that didn’t work. That lead me to entirely disabling WordFence, and I’m still getting the issue.

    I have provided you with a user and put credentials in the sensitive data section.

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

    We apologize for the issue you are facing with saving post meta settings in Rank Math. It seems like the REST route for Rank Math is being blocked or not recognized, which is causing the 404 error you mentioned.

    Here are a few steps you can take to troubleshoot this issue further:

    1. Check REST Route: Since you are getting a 404 error when trying to access /wp-json/rankmath/v1/updatemeta, it indicates that the REST route is not available. You can check if other Rank Math REST routes are accessible by visiting:

      https://www.wordfence.com/help/firewall/learning-mode/

      Replace your-development-site-url with your actual development site URL. If this also returns a 404 error, it confirms that the REST API is not functioning correctly.

    2. Plugin Conflicts: Ensure that there are no other plugins that might be conflicting with Rank Math. Sometimes, other SEO plugins or security plugins can cause issues. You can try deactivating all other plugins except Rank Math to see if the issue persists.

    3. Theme Conflicts: Switch to a default WordPress theme (like Twenty Twenty-One) temporarily to check if your current theme is causing the issue.

    4. Server Configuration: Since you are on Cloudways, ensure that your server configuration allows for REST API requests. You may want to reach out to Cloudways support to confirm that there are no server-level restrictions affecting the REST API.

    5. Check .htaccess File: If you have access to your site’s .htaccess file, ensure that there are no rules that might be blocking access to the REST API endpoints.

    If after trying these steps you are still unable to resolve the issue, please reply to this ticket with any additional details or errors you encounter, and a human agent from our support team will assist you further. Thank you for your patience!

    Grieve Law
    Rank Math free

    1. Irrelevant. The action doesn’t work even when Wordfence is disabled. I also did follow the advice in your knowledgebase articles about this issue, including whitelisting the wpjson endpoints that RankMath uses. I also whitelisted my server’s IP in server-level firewalls, though that seems redundant, and I still can’t update. While in learning mode, I did try to update the page, but received no warning from Wordfence.
    2. I looked and didn’t identify any plugin conflicts.
    3. I’m on the Hello Elementor theme, which wasn’t causing any issue as of 3/21.
    4. This was working on 3/21 and no changes have been made to my server config, Cloudways support reports that Rest API access is enabled. I verified by posting to /wp-json/wp/v2/posts/ and received a positive response.
    5. I checked the .htaccess and there are no rules that would interfere.

    Hello,

    Thank you for contacting support.

    On your website, there is a redirection forcing lowercase letters on all URLs, and the route used to save the metadata includes uppercase characters, as we use camel case for the route names.

    You need to disable this type of redirection on the wp-json domain to prevent the REST API routes from being affected and to be able to run the correct route URL on the website.

    Don’t hesitate to get in touch if you have any other questions.

    Hey Miguel

    This makes a lot of sense, I appreciate you figuring this out. I’m a little embarrassed I didn’t put that together, actually. Excluding wp-json from that rewrite did the trick, thank you so much for your help!

    FWIW, the rewrite happens in PHP in the theme’s functions file, not in .htaccess, that’s why I didn’t catch it while looking there.

    Thank you!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

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

The ticket ‘Unable to save post meta settings’ is closed to new replies.