• Resolved ennovator

    (@ennovator)


    In Litespeed I’ve turned the js/css combine settings to ON which seems to help in google speed tests and making the pages mobile friendly, however when doing so one issue occurs with wpforms and specifically, I think, with recaptcha.

    The recaptcha suddenly doesn’t show or work and I get the WPForm ‘Heads up! WPForms has detected an issue with JavaScript on this page. JavaScript is required for this form to work properly, so this form may not work as expected’ message appearing for admins.

    Is there a setting in WPForms to fix this?

    Is there a way to fix this without turning off minification or combined files in Litespeed, as this is the only thing that has gone wrong since turning those settings to on, all other plugins seem to work fine combined, and I’d prefer a faster well indexed site to a contact form that doesn’t work, but ideally I’d like both.

    I’ve already tried adding /recaptcha/api.js to the tuning js excludes. Do you have any suggestions?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @ennovator,

    Thanks for writing in!

    There have been cases where enabling this setting in the LiteSpeed Cache plugin has been known to conflict with specific features in WPForms, such as reCAPTCHA.

    Currently, the best solution to prevent such cases is to:

    1) Exclude the page or post where the forms are from JS optimization. Please check here for more details.

    2) Exclude this file from being minified using the following file path: /wp-content/plugins/wpforms/assets/js/wpforms.js

    Please be sure to clear your site’s cache after doing any of the changes above. In case you are unsure how to do the suggestions above, kindly get in touch with the support of the caching plugin you are using as they should be able to provide you with more details.

    I hope this helps!

    Thanks ??

    Thread Starter ennovator

    (@ennovator)

    Hi Will, thanks for replying. I left this for a while as everything I tried didn’t work, but then found that the solution was simply to add wpforms without the .js in Litespeed.

    It works now, thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPForms Heads Up Error With Litespeed’ is closed to new replies.