Title: Form submit error
Last modified: March 8, 2023

---

# Form submit error

 *  Resolved [lucafedele89](https://wordpress.org/support/users/lucafedele89/)
 * (@lucafedele89)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/)
 * Hi,
 * the forms in this page don’t works. I hade a lot of problems in all the website
   in the last couple of weeks but only in this page it still remain. This was the
   problem message in the last weeks “This page is’t loding Javascript” I’ve followed
   the troubleshooting guide for JS problem but without solution. This problem is
   solved from yesterday but i don’t know why.
 * Only in this page [https://www.roboris.it/en/landing-form-calcolatore-risparmio-eng/](https://www.roboris.it/en/landing-form-calcolatore-risparmio-eng/)
   the problem is still there but with this message “The form was unable to submit.
   Please contact the site administrator.”
 * Please, i have to solve asap the problem
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fform-submit-error-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * (@prashantrai)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16545165)
 * Hey [@lucafedele89](https://wordpress.org/support/users/lucafedele89/) – Thanks
   for contacting us!
 * I looked into the website, and I was able to replicate the issue wherein the 
   form would give “The form was unable to submit. Please contact the site administrator.”
   error message.
 * The issue occurs because of the difference in the cache lifetime on your site
   and in the token lifetime of the anti-spam protection option (which is set to
   2 days) that is enabled by default in your forms (please, look at the [screenshot](https://a.supportally.com/i/Gr1ZGJ)
   where you can find this option).
 * **Solution**
 * I checked on the site, and you are currently using the W3 Total Cache plugin 
   which is possibly causing the cache issue on the form thereby preventing the 
   form’s submission.
 * There are a couple of ways to deal with this: **disabling anti-spam protection**
   or **decreasing the lifetime of your cached** pages.
 * 1. [Here is how to disable the anti-spam protection on your form](https://wpforms.com/docs/how-to-prevent-spam-in-wpforms/).
   And you can use any other method from our recommended options.
 * 2. Decrease the cache lifetime on your site to 45 hours in your caching plugin
   settings.
 * 3. Or, you can increase the token cache lifetime; [we have a guide here](https://wpforms.com/developers/how-to-change-the-cache-time-on-your-form-token/.).
 * In case it helps, [here’s a tutorial](https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/)
   with the most common ways to add custom code like this.
 * For the most beginner-friendly option in the guide above, I’d [recommend](http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/)
   using the [WPCode](https://wordpress.org/plugins/insert-headers-and-footers/)
   plugin. This will protect your code from updates and keep it easy to manage right
   within your WordPress admin area.
 * I hope this helps! Could you please let me know if I can clarify any of the information
   above or provide you with more details?
 * Thank you! 🙂
    -  This reply was modified 3 years, 2 months ago by [Prashant Rai](https://wordpress.org/support/users/prashantrai/).
 *  [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * (@prashantrai)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16548747)
 * Hey [@lucafedele89](https://wordpress.org/support/users/lucafedele89/) – I hope
   you got the chance to look at the solution I shared. Since we haven’t heard back
   from you, for now I’m going to close this ticket. But if you have any questions,
   please feel free to reachout.
 * Kindly,
 *  Thread Starter [lucafedele89](https://wordpress.org/support/users/lucafedele89/)
 * (@lucafedele89)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16553810)
 * Hey [@prashantrai](https://wordpress.org/support/users/prashantrai/)… for first
   thank you… thank you very very very (very very) much for spending your time for
   my problem… but it don’t works =/.
 * I triyed to decrease the cache lifetime to 45 hours but the only option i funded
   is “Expires header lifetime” in the CSS & JS option of the “browser cache” in
   W3 total cache settings, but i’m not sure that this is the right option to set.
   It was set in 3.150.000 seconds. Do you know where i can find the cache lifetime
   option to set in W3 Total Cache?
 * Have i yet told you how much i thank you???
 *  [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * (@prashantrai)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16559603)
 * Hey [@lucafedele89](https://wordpress.org/support/users/lucafedele89/) – Thanks
   for following on this ticket!
 * When you have sometime, please navigate under Database Cache > Maximum lifetime
   of cache objects, and set the value here. Here’s a [screenshot](https://a.supportally.com/i/lpy8Zn)
   for more details.
 * You can also consider using the other solutions I shared in my previous response.
 * Please let me know how it goes!
 * Kindly,
 *  Thread Starter [lucafedele89](https://wordpress.org/support/users/lucafedele89/)
 * (@lucafedele89)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16560888)
 * Hey [@prashantrai](https://wordpress.org/support/users/prashantrai/)… unfortunately
   it don’t works =/… i try now the other solutions you suggest and give you feedback
   then!… thank you very very much!!
 *  [jureka](https://wordpress.org/support/users/protestkit/)
 * (@protestkit)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16566375)
 * I have a similar issue, I also use w3tc. Last update was on 28.02.2023 WPForms
   Lite (from version 1.8.0.1 to 1.8.0.2), today is 16.03.2023 and the problem was
   first brought to our attention about 4 hours ago. I do not use database cache
   but do use object cache with 7200 seconds as default life time of cache objects.
   I have excluded contact form page from page caching, yet issue persits. Disabling
   form antispam protection fixes the issue (captcha remained without issue). Perhaps
   its relevant we were under an automated sql injection attack last night. Please
   advise how to fix the issue without disabling form antispam function. thank you,
 *  [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * (@prashantrai)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16567385)
 * Hey [@lucafedele89](https://wordpress.org/support/users/lucafedele89/) – Sure–
   please try the other solutions I suggested, and if you continue to experience
   issues, don’t hesitate to let me know. I’ll do my best to assist you further.
 * [@protestkit](https://wordpress.org/support/users/protestkit/) To prevent any
   potential misunderstandings, could you please [create a new ticket](https://wordpress.org/support/topic/wpforms-lite-support-policy/)
   and provide me with the details? I would be more than happy to assist you.
 * Kindly,
 *  Thread Starter [lucafedele89](https://wordpress.org/support/users/lucafedele89/)
 * (@lucafedele89)
 * [3 years ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16718961)
 * Hi [@prashantrai](https://wordpress.org/support/users/prashantrai/)… i’m already
   here to give you some feedback about the problem with WP forms.
 * This morning i realized that we hadn’t been receiving contact for a few days,
   so i did a test and… the problem was back!
 * I thought back to last week and the only thing done on the site was the publication
   of a new article (both in ITA and ENG version) and therefore, to make anew test,
   I deleted some old articles and … IT WORKS!
 * Is it possible that the problem exists only from a certain number of articles
   published up? Is there any way to check if there is any kind of correlation?
 * Thank very very much!!
 *  [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * (@prashantrai)
 * [3 years ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16724121)
 * Hey [@lucafedele89](https://wordpress.org/support/users/lucafedele89/) – Thanks
   for following on this ticket ticket!
 * Ideally publishing articles should not cause the issue. When you have sometime,
   can you please try disabling the [anti-spam feature](https://a.supportally.com/i/LnQ6B5)
   under Settings > Spam Protection and Security? When you do that, please be sure
   to enable one of the captcha tools ([reCAPTCHA](https://wpforms.com/docs/how-to-set-up-and-use-recaptcha-in-wpforms/),
   [hCaptcha](https://wpforms.com/docs/how-to-set-up-and-use-hcaptcha-in-wpforms/),
   [Cloudflare Turnstile](https://wpforms.com/docs/setting-up-cloudflare-turnstile/))
   we offer to prevent spam submissions.
 * Kindly,

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Form submit error’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/form-submit-error-3/#post-16724121)
 * Status: resolved