Support » Plugin: Contact Form by WPForms - Drag & Drop Form Builder for WordPress » Since update: AJAX form submission stops form processing and sending

  • Resolved ThMarket

    (@thmarket)


    Since some days (I guess since your latest update 1.5.9.1) an activated “AJAX form submission” is stopping the Form-data to be send/processed. When people click on the “send”-button they get the message “sending” but that’s all. We receive no email-notifications about the form-inputs and also the confirmation-text is not shown to the users. As soon we disable AJAX form submission everything is working as it should.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jared Atchison

    (@jaredatch)

    Thanks for reaching out!

    Can you provide the URL where the AJAX form is embedded?

    Thread Starter ThMarket

    (@thmarket)

    Thanks for your quick reply!
    I have created a temporary url for you where I enabled AJAX form submission so that you can see the issue: (link removed)

    • This reply was modified 1 year, 7 months ago by ThMarket.
    Plugin Author Jared Atchison

    (@jaredatch)

    Thanks, that was quite helpful.

    I can see in the browser console that when submitting the form the AJAX requests returns with “Service Unavailable”.

    A few things can cause this, most commonly:

    – Request is blocked due to firewall or security policy.
    – Request triggers an error and simply fails.

    If the request is triggering an error, it usually gets logged in your site’s PHP error log file. You may have access to this through your web host, in other cases they can provide it for you. If you can get access to the PHP error log, it may point to an error/conflict which would narrow down the issue.

    For firewall or security policy, you’ll have to check with the web host and see if they have anything specific enabled, and if so usually there is an associated log of blocked requests. If you’re using a 3rd party service like CloudFlare’s WAF, that could be related (but generally, we don’t see any issues with CloudFlare’s default configurations).

    It’s strange the AJAX form request fails and the normal submit request passes, since the processing is very similar, just executed differently.

    If you can reach out to your host to get more information hopefully we can narrow this down. Thanks 🙂

    Thread Starter ThMarket

    (@thmarket)

    I activated PHP error logs through an .user.ini-file in my WP-folder but no log-file had been created when I tried to send the form. I am not sure if the request is triggering no error or there is an other problem (my host was not very helpfull in this case).

    Do you generally think that the problem is more with our server than with the plugin?

    Plugin Author Jared Atchison

    (@jaredatch)

    Hey @thmarket,

    We have another trick we can try to see if it helps. You can enable debug mode through WordPress and see if it catches any errors which may give us more to go off of.

    For more on enabled the built in WordPress debug mode, check out https://wpforms.com/developers/how-to-enable-debugging-in-wordpress/

    Let me know!

    Thread Starter ThMarket

    (@thmarket)

    Hey Jared,

    thank you for your help. I now activated the WordPress debug mode but it don’t creates the /wp-content/debug.log when I try to send the form with activated AJAX form submission.

    Plugin Support Ethan Choi

    (@ethanchoi)

    Hi @thmarket,

    In this case you might want to try reaching out to your host again to check if there are any possible security setting that is blocking the AJAX request.

    Alternatively, you can consider disabling the AJAX form submission setting in the form builder.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Since update: AJAX form submission stops form processing and sending’ is closed to new replies.