• Resolved vbsa

    (@vbsa)


    Hi, I setup a simple contact form with a captcha and everything works when you fill out the contact and message fields and the captcha but when you submit the form you get an error message stating “The form was unable to submit. Please contact the site administrator.”

    I don’t get an email confirming the form was submitted so this is not a false message. Any help would be appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @vbsa,

    The error message “The form was unable to submit. Please contact the site administrator.” can appear if there are some JavaScript (JS) errors on your site or the form token that is used for Anti-spam protection (https://a.supportally.com/GhUYkC) are cached by some caching plugins you’re using. The form tokens are valid for 48 hours, so if you have a page cached for more than that, the form tokens become invalid and the form won’t be able to submit. If you have any optimization or caching plugins, you might want to check the cache lifespan and decrease them.

    You could also quickly check this by clearing your cache, then running a test submission. If the from is able to submit after the cache has been freshly cleared, it confirms that caching is the issue.

    While testing, please ensure that you test from a browser that isn’t logged in to your site, because it is common for caching plugins to not cache logged in users. With the cache being circumvented, the issue wouldn’t be able to present itself (if it is the cache).

    A broader test would be to disable any caching/optimization plugins you have active on your site.

    Please let me know how it goes ??

    Kindly,

    Thread Starter vbsa

    (@vbsa)

    Hi Henry. Here is what I have done but unfortunately I am still getting the same error so I may have missed something.

    I have purged the “SG Cache” at the top of the WordPress Admin dashboard
    I only have 1 plug in that deals with optimisation called ‘SG optimiser’ (Siteground native optimiser).
    In the SG Optimiser settings (see here https://alecs73.sg-host.com/wp-content/uploads/2021/11/SG-Optimiser.jpg) I couldn’t see a time setting for caching but I did add the two contact us pages to the “exclude urls from caching option”

    So I deactivated the SG Optimiser and the contact form worked, when I reenabled it it immediately failed.

    So as you correctly suggested there does seem to be something there stopping this contact form working but as you can see there are not many settings to work with.

    Would it help if I changed the captcha type on the contact page?

    Any suggestions?

    • This reply was modified 3 years ago by vbsa.

    Hi @vbsa,

    You may need to reach out to SG Optimizer’s support team for assistance with this as well then, as your testing does show that it is their plugin, when activated, is causing the issue. Our expertise also lays within WPForms and we’re not too familiar with SG Optimizer.

    Please also try the following in SG Optimizer:
    1 – Exclude the page or post from JavaScript (JS) optimization by selecting the Exclude from Loading JS Files Asynchronously option in the settings, and then clearing the cache (before retesting), OR
    2 – Disable the Minify/Combine JavaScript Files option

    I hope that helps ??

    Kindly,

    cleverbet

    (@cleverbet)

    I have the same error message but don’t have any caching plugins installed.

    https://cleverbet.com/cleverbet-competitions/

    cleverbet

    (@cleverbet)

    I seem to have fixed mine by disabling SPAM protection within the WP Security plugin.

    Hi @cleverbet,

    From what you’ve described, it is likely there was something that has a similar affect, such as a JavaScript optimization or a CDN in use for your site. If you’d like to continue looking for the possible cause, I’d suggest trying the steps we recommend in our Troubleshooting guide here: https://wpforms.com/docs/getting-support-wpforms/

    If you have any further questions regarding this, please create a new thread ??

    Thanks!

    Hi @cleverbet,

    We haven’t heard back from you in about a week, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Form not submitting!?’ is closed to new replies.