How to deal with script errors in WP Super Cache
-
I can’t seem to register for newsletters created with WP Forms due to a script error, how do I set this up in WP Super Cache? I am in a bit of a hurry.
-
Hi @mokosuke0375,
Thanks for reaching out!
We don’t have a guide with recommend settings for the WP Super Cache plugin, as we have for other caching/optimization plugins here.
But to prevent issues from submitting forms due to that plugin, I recommend following the WPBeginner guide on how to set up the WP Super Cache plugin.
I would recommend special attention to two sections:
- Set Up Expiry Time & Garbage Collection
- Specify Pages You Don’t Want to be Cached — this should be useful in case you have submission issues.
I hope this helps!
Hi mokosuke0375,
We haven’t heard back from you in a few days, 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!
Sorry, I have checked and found this error, but I am not very knowledgeable and don’t really know how to deal with it. I would like your advice.
1):ReferenceError: Can’t find variable: jQuery
}(jQuery, document, window);
2): u.hoverintent(n[i], b.bind(null, n[i], “hover”), y.bind(null, n[i], “hover”)).options({
u.hoverintent is not a function. (In ‘u.hoverintent(n[i],b.bind(null,n[i],”hover”),y.bind(null,n[i],”hover”))’, ‘u.hoverintent’ is undefined)
3):ReferenceError: Can’t find variable: wpforms_settings
ce.readyException = function(e) {
ie.setTimeout(function() {
throw e
})Hi @mokosuke0375,
When you get a chance, could you please share more details about the errors? If possible, please share some screenshots, that way we will be able to provide further information.
Thanks!
Hello. Thanks for contacting me.
This is the error I am getting now.
It was working fine at first. I have no idea why I am getting this error when I am just pasting the shortcode.
Please let me know how to deal with this.
1)jquery.min.js?ver=3.7.1:2 Uncaught ReferenceError: wpforms_settings is not defined
at Object.loadValidation (wpforms.min.js?ver=1.8.5.2:1:1316)
at HTMLDocument.ready (wpforms.min.js?ver=1.8.5.2:1:291)
at e (jquery.min.js?ver=3.7.1:2:27028)
at t (jquery.min.js?ver=3.7.1:2:27330)
2)jquery.min.js?ver=3.7.1:2 jQuery.Deferred exception: wpforms_settings is not defined ReferenceError: wpforms_settings is not defined
at Object.loadValidation (https://e9j6my4y48a.exactdn.com/wp-content/plugins/wpforms-lite/assets/js/wpforms.min.js?ver=1.8.5.2:1:1316)
at HTMLDocument.ready (https://e9j6my4y48a.exactdn.com/wp-content/plugins/wpforms-lite/assets/js/wpforms.min.js?ver=1.8.5.2:1:291)
at e (https://e9j6my4y48a.exactdn.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
at t (https://e9j6my4y48a.exactdn.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330)
https://dominicmillerjapanfan.com/newslettersignup/Hi @mokosuke0375,
Thanks for the details, and I could see the errors in the Console on your page. And if we try to submit the form, it will show an alert that “The form could not be submitted”.
First, I recommend trying the suggestion in our guide on how to troubleshoot cache settings. If the adjustments don’t work for you, you could try disabling our anti-spam feature, clearing your site cache, and then checking if the issue continues.
If the issue continues, please try using the steps in WPBeginner’s detailed guide on troubleshooting WordPress to see if it helps resolve the issue.
I hope this helps!
The topic ‘How to deal with script errors in WP Super Cache’ is closed to new replies.