• Chiming in on this with everyone else.

    After extensive testing, changing themes, disabling plugins, caching, recaptcha keys, enabled errors/debugging/etc. I finally had to revert back to Version 5.3.2 in order to make the forms functional again.

    I use this plugin on several dozen sites (50? more?) and in most cases, it works fine, but with some instances like these I had trouble with today, it does not.

    One site had issues with /wp-json/ and admin-ajax throwing 403 and 404 errors in the console.

    Another site throws this and fails:

    Object { code: "invalid_json", message: "The response is not a valid JSON response." }
    index.js:1:4151

    Reverting to v5.3.2 resolved those errors, so something with the latest updates doesn’t play well with something in a theme or plugin somewhere.

    • This topic was modified 3 years, 8 months ago by e dev.
    • This topic was modified 3 years, 8 months ago by e dev.
    • This topic was modified 3 years, 8 months ago by e dev.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter e dev

    (@efishinsea)

    This is one that is still using 5.4 and still broken:

    https://aoz.short.gy/3Ccn8A

    The only caching with the site is built in at the hosting level and would have to be completely turned off to get around. Obviously, site owners are not going to want to disable their cache.

    Thread Starter e dev

    (@efishinsea)

    As a follow up, it seems that disabling allow_url_include by setting it to ‘off’ in your php.ini will resolve this issue.

    ; Whether to allow include/require to open URLs (like https:// or ftp://) as files.
    ; https://php.net/allow-url-include
    allow_url_include = Off
    

    It’s a good idea for security as well.

    For another site in a managed account on the same host, I still see JS errors:

    api-fetch.min.js:2 POST /wp-json/contact-form-7/v1/contact-forms/1044/feedback?_locale=user 403
    F @ api-fetch.min.js:2
    
    api-fetch.min.js:2 GET /wp-admin/admin-ajax.php?action=rest-nonce 400 F @ api-fetch.min.js:2
    
    • This reply was modified 3 years, 8 months ago by e dev.
    Thread Starter e dev

    (@efishinsea)

    I found another site that wasn’t working which ended up being caused by JS defer, which I had to disable in order to allow the form to submit.

    It seems like whatever JS changes you made to v5.4 weren’t tested enough, or made optional to allow for backward compatibility. I’m sure this affects a very large number of sites.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Latest Version v5.4 breaks form’ is closed to new replies.