Not able to save Rank Math data, issue with REST route.

#800590
  • Resolved Anonymous
    Rank Math free

    Good day,

    When updating the RankMath data on a post or page, once we click “Update” the data is not saved. I have had a look at “our-domain.com/wp-json/rankmath/v1/updateMeta” and receive “No route was found matching the URL and request method.”

    To resolve this, so far I’ve tried removing/deactivating all security and caching related plugins, and asking our hosting provider to whitelist access to the following file:

    /wp-json/rankmath/v1/updateMeta
    /wp-json/rankmath/v1/updateSchemas
    /wp-json/rankmath/v1/updateRedirection
    /wp-json/rankmath/v1/getFeaturedImageId
    /wp-json/rankmath/v1/getHead

    Although it was a long shot, I also tried activating Headless CMS Support in the RankMath settings, as this was recommended by the AI support.

    But so far no luck. Would appreciate some help sorting out this issue, thanks!
    Justin

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

    I’m sorry to hear about the issue you’re facing with saving Rank Math data due to problems with the REST route. It seems like you have already taken some steps to troubleshoot the problem by checking the REST route and whitelisting access to specific Rank Math files.

    Since you have already tried some troubleshooting steps without success, I recommend following these additional suggestions:

    1. Check for Plugin or Theme Conflicts: Sometimes conflicts with other plugins or themes can prevent Rank Math from saving data. Ensure there are no conflicts by deactivating other plugins temporarily and switching to a default WordPress theme to see if the issue persists.

    2. Review Firewall Settings: If you are using a firewall, ensure that Rank Math is not being blocked. Whitelist the necessary Rank Math files as you have done before.

    3. Reach Out to Rank Math Support: If the issue persists, consider reaching out to Rank Math support directly by opening a support ticket. Provide them with the details of the issue you are facing, including the steps you have already taken.

    If you need further assistance, please feel free to provide more details or open a support ticket for personalized help from the Rank Math team.

    Thank you for your understanding and patience in resolving this issue.

    Best regards.

    Sources:
    Why Rank Math Settings Are Not Getting Saved? » Rank Math
    Why Your SEO Title, Description & Focus Keyword Aren’t Being Saved » Rank Math

    Hello,

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

    While saving the metadata, please keep the browser console open in the “Network” tab and see what the status code of the following route: https://www.yourdomain.com/wp-json/rankmath/v1/updateMeta?_locale=user

    You can find the browser console in your browser following this guide: https://balsamiq.com/support/faqs/browserconsole/

    ​​​​​​​If it’s returning any other value than a 200, there’s something wrong with the route and we would request you to get in touch with your hosting provider to make sure that REST APIs are not getting blocked.

    However, if it returns 200, then 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/

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Good day Rakibuzzaman, thank you for your reply! Just a update, waiting on my clients approval to send login details, will send them ASAP.

    Hello,

    Sure, let us know once you can share the login details so we can check and fix the issue on your site.

    Looking forward to helping you.

    Anonymous
    Rank Math free

    Hello,

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

    Thank you.

    Anonymous
    Rank Math free

    Good morning, I’ve attached login detail with the sensitive data, thank you for your patience and time looking into this.

    An update from my side, I’ve cloned the site over to our server. On our server, there are no issues when it comes to saving RankMath. However, on the clients server there is still an issue. This makes me think that the issue must be a conflict/firewall/permission issue on the clients server. The hosting company however is unable to find any issue on their side. If you are able to provide us with any information or guidance we’d appreciate it.

    Justin

    Hello,

    We checked your website and found that the Rank Math Rest API is returning a 404 error. However, we couldn’t identify the exact issue as the Health Check plugin of your website is throwing a critical error.

    In this case, you can create a staging site for us where we can directly disable the plugins and check the issue without affecting your live site: https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Hello,

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

    Thank you.

    Anonymous
    Rank Math free

    Thanks for having a look! I ran into the same problem with the Health Check plugin myself. I’ve deleted it from the site now and also refreshed the temporary login token so hopefully you have access to the live site again.

    I’ve also created a staging site on our server, and added the login details to the sensitive data. The problem however is that RankMath’s settings are saving fine on our server, but not on the clients server, so it’s a bit difficult to replicate the issue.

    Hello,

    After troubleshooting this, interestingly the staging site is working fine but the live site isn’t.

    Staging site:

    Live site:

    Since your production site is live we’re unable to troubleshoot it, especially without FTP to restore the site if anything goes wrong. We’ll suggest you troubleshoot this on your end, i.e. deactivate all your plugins and install a default theme then test the update again. If your staging is on another sever, then the issue could be coming from the live site’s server – so we’d suggest reaching out to them again.

    Thank you for your patience and cooperation. We are looking forward to hearing back from you.

    Anonymous
    Rank Math free

    Thanks Great! I will post the outcome here when I hear back from them.

    Hello,

    That is fine. “Please let us know when you hear from them.”

    We look forward to hearing from you.

    Thank you.

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

The ticket ‘Not able to save Rank Math data, issue with REST route.’ is closed to new replies.