Can’t update meta tags

#313165
  • Resolved Arya
    Rank Math free

    Hi Support Team,

    The meta tags can’t be updated in Rank Math.
    There is an error message stating that “no route was found matching the URL and request method”.
    We checked the hosting and found no restricted routes.
    We have also disabled the other plugins to check for a plugin conflict, and the meta tags are still unable to be updated.
    Can you help me?

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

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

    Can you please share a screenshot of the error message that you are getting in your browser’s console while trying to save the meta data? You can use a tool like https://imgbb.com/ to share the screenshots.

    Looking forward to helping you.

    Hello,

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

    Could you please get in touch with your web host and check if something is blocking the WordPress API REST? Please also ask them to check the Firewall Settings and whitelist the updateMeta rule.

    Here’s a link for more information about this issue:
    https://rankmath.com/kb/meta-data-not-saving/

    I hope that helps.

    Thank you.

    Arya
    Rank Math free

    Thank you for your quick response.

    When I try to edit a page in WordPress, this error appears.
    https://ibb.co/NmgnGzx

    The same error appears when I try to “remove transients”.
    https://ibb.co/LZMR4HX

    Hello,

    We might need to take a closer look at the settings. 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/

    We really look forward to helping you.

    Arya
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    I can check that the route to update the metadata is being redirected to a route that adds a trailing slash and thus returns a 404 error.

    It’s redirecting from this: /wp-json/rankmath/v1/updateMeta?_locale=user

    To this: /wp-json/rankmath/v1/updateMeta/?_locale=user

    Notice the trailing slash before the query parameter _local=user and that is what is causing this issue.

    Please check if you have any rule in your .htaccess that is adding a trailing slash to all your URLs and make the necessary changes so it doesn’t apply to routes such as this one.

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

    Arya
    Rank Math free

    Hi Support Team,

    We have tried to add redirection from /wp-json/rankmath/v1/updateMeta/?_locale=user to /wp-json/rankmath/v1/updateMeta?_locale=user, but still have the same issue.

    Would you mind sharing step by step how to exclude that route from the redirection to trailing slash?
    Because we did not set any redirection rules/settings for trailing slashes.

    Prabhat
    Rank Math agency

    Hello,

    Please take a backup of your .htaccess file and replace it with the default WordPress .htaccess file. You can get the file contents from here: https://wordpress.org/support/article/htaccess/

    You can follow this guide to edit the .htaccess with Rank Math:
    https://rankmath.com/kb/edit-htaccess/

    Once done, please clear your website and browser’s cache and see if the issue is fixed.

    Let us know how that goes.

    Thank you.

    Arya
    Rank Math free

    Hello,

    Is there another way to fix this issue instead of replace the .htaccess?
    we have other plugin settings on the existing .htaccess.

    Hello,

    You can try replacing the .htaccess file and if the issue doesn’t resolve then can switch back to the previous file. If the issue is resolved after replacing the file with the default one then there is some rule in your .htaccess file that is causing the issue.

    Please check and let us know how that goes.

    Thanks.

    Arya
    Rank Math free

    Thank you for the suggestion.

    The htaccess file has been replaced with the default setting, but the meta tags have not changed.
    Error message remains the same.

    Kindly see below image for the htaccess setting.
    https://ibb.co/bHwmfWy

    Hello,

    I tried accessing your admin dashboard again to further check the issue but it seems the page just keeps on throwing a timeout error. Please refer to my screenshot here:
    error.

    Can you please confirm it from your end?

    Also, please share your FTP login as well so we could deeply debug this issue.

    Looking forward to helping you on this one.

    Arya
    Rank Math free

    Yes, that staging website is protected.
    You need a VPN for access.

    It is unlikely that we can give you access to the FTP.
    Is there anything we should check or fix?

    Arya
    Rank Math free

    I have a question, you mentioned before the problem is due to “the route to update the metadata is being redirected to a route that adds a trailing slash and thus returns a 404 error.”
    Can we make the route to update the metadata accessible even if the URL has a trailing slash?

    Hello,

    No, the route needs to be loaded on that particular URL without the trailing slash that your website is adding there.

    Unless you can find a way to remove that redirection from there and remove that trailing slash the update of meta tags won’t work properly on your website.

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

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

The ticket ‘Can’t update meta tags’ is closed to new replies.