WP REST API breaking in older Chrome and Firefox
-
Hello.
We just noticed that forms do not submit in older versions of Chrome (unsure when started, definitely fixed by 60.0.3112.90) and Firefox (at least 43.0.4, definitely fixed by 54.0.1).
Steps to reproduce:
1) Open basic contact form in older browser described above
2) Complete and submit formExpected behavior:
* Form submits, confirmation message displayed below Submit button, email received by site owner.Actual behavior:
* Spinner icon appears beside Submit button, no confirmation message, no email sent or received, following error message in Dev Console:
{“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method”,”data”:{“status”:404}}This was reported to us by a client, as customers were unable to send emails. One team member was able to reproduce on Chrome and Firefox, but it works fine on Safari. Form submitted fine for me on all three browsers. After upgrading team member’s Chrome, form submits fine.
In my browser, when successfully submitting, the REST API URL is:
https://www.day-spa-ramstein.de/en/wp-json/contact-form-7/v1/contact-forms/2746/feedback
In my team member’s browser, when failing to submit, the REST API URL is:
https://www.day-spa-ramstein.de/en/wp-json/contact-form-7/v1contact-form-7/v1/contact-forms/2746/feedbackNote the additional “v1contact-form-7/” in the second URL; not sure why the older browser would do this, but that is the issue.
Hope this helps, happy to help test,
Aaron T. Grogg
- The topic ‘WP REST API breaking in older Chrome and Firefox’ is closed to new replies.