• Andy

    (@mr_andy_hill)


    This is just for information that might prove useful to someone else.

    A mature website stopped post-processing of a CF7 form submission. The AJAX submission was happening, but the little processing circle just span so the user didn’t get passed to the Thank You page. The user then just continued to click submit and ended up making multiple submissions with no apparent success from their perspective.

    On checking the console I saw a POST error 404 for domain.com/contact-form-7/v1/contact-forms/5/refill?_locale=user ( note the missing rest api in the url ) on loading the page. The submission button then produced a second error, the “incorrect JSON response” error, as you would expect, because the URL didn’t include the wp-json/wp/v2 bit of the path…

    This is CF7 5.4

    After digging around for a while I was able to identify that is was the LiteSpeed Cache, Version 3.6.4, JS Minify that was changing the original JS sufficiently for the wrong path to end up on the page. After JS Minify was switched off, the CF7 form went back to working perfectly as expected.

    This is for information only, hope it helps someone else get to the answer faster than I did ??

    Thanks for a brilliant plugin.

    Andy

  • The topic ‘JSON incorrect response’ is closed to new replies.