• Resolved petedbd

    (@petedbd)


    Hi,

    I am currently trying to use Wpforms as my contact 7 forms were getting too much spam.

    When I go add my wp form I get the following error “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. See our troubleshooting guide to learn more or contact support.”

    I don’t have any plugin for optimizing or cache so I don’t believe it would be that. Can anyone help, please?

    • This topic was modified 3 years, 9 months ago by petedbd.

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

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hello @petedbd,

    Thanks for contacting us!

    It seems that either the theme or plugin is having some JS minification feature enabled, which is the reason why browser validation is taking over the form validation. And that’s the reason why you’re getting a Javascript error message.

    When you have some time, could you please check the theme settings and let me know how it goes?

    Thanks!

    • This reply was modified 3 years, 9 months ago by Prashant Rai.
    Thread Starter petedbd

    (@petedbd)

    Hi Prasant,

    Thank you for your reply.

    Would you be able to direct me to the theme settings? Not sure if I’m missing it you see.

    I have looked in the settings tab on WordPress but no joy in terms of finding anything related to Js minification.

    Possible solution: Would I be able to go through the code and unminify the code via an unminify tool online?

    Thread Starter petedbd

    (@petedbd)

    Hi,

    Just following up on my previous reply.

    Didn’t find anything in the WordPress cms related to js minification. I can provide WordPress access if that will make things easier?

    Hello @petedbd,

    I apologize, www.ads-software.com support policy does not allow us to provide support by logging into the user’s website admin area. It’s against the policy of www.ads-software.com to share or ask for login details.

    However, when you have some time, can you please share some screenshots of your theme’s settings area? Also, can you please also let me know the plugins you’re using on the website?

    Thanks!

    Thread Starter petedbd

    (@petedbd)

    No that’s fine. Yeah, sure. Following is a screenshot of the plugins I’m using.
    https://ibb.co/9TdJ4Jc
    https://ibb.co/5YLG3sX

    In regard to the theme settings area. I’m not too sure where this is specifically.

    The theme has been custom built so not too sure if that changes things. I’m just trialing out the best solutions to reduce Spam after several failed attempts with other plugins e.g. honeypot & askimet anit-spam. WP forms seems like a pretty good solution for when I get it up and running. I, unfortunately, don’t have contact with the theme developers now though.

    Let me know if you need anything else.

    Hello @petedbd,

    Thanks for sharing the screenshot!

    I don’t see any plugin that might be causing the conflict. However, as you’re stating that you’re using a custom developed theme, I think there’s a possibility that the theme might be creating the conflict. When you have sometime, temporarily could you please activate the default WordPress theme under Appearance > Themes and see if that fixes the issue?

    Thanks!

    • This reply was modified 3 years, 9 months ago by Prashant Rai.
    Thread Starter petedbd

    (@petedbd)

    Hi,

    Yeah, I believe that is it. When changing the theme the error was removed.

    In terms of how I approach this now then. I ideally need to keep the custom theme. Would there be a reason why the theme is conflicting(why the js isn’t loading in properly) that I can sort? I have okay coding knowledge.

    Thread Starter petedbd

    (@petedbd)

    I believe it’s that the wpforms js hasn’t loaded in at all if I’ve understood it correctly

    Hello @petedbd,

    Thanks for sharing the details!

    As you’re using some custom theme on the website, on inspecting the website in Chrome dev tools, I see that the website is not loading the wpforms.js file. When you have some time, could you please get in touch with the developer to see if the theme is causing some conflict?

    Thanks!

    Thread Starter petedbd

    (@petedbd)

    Ah I see, I, unfortunately, don’t have communication with the developers anymore.

    In regard to how I would try to fix it myself. Could I request the wpforms.js from you and load it in via the code?

    I have a fairly good understanding of how to load in js via script tags.

    Or if you have any other suggestions of how I could pinpoint the code that is causing an issue?

    Thanks ??

    Hello @petedbd,

    Though it can break the form functionality if you manually enqueue the wpforms.js file as there are a bunch of moving parts, however, as you’re using a custom theme, I think you can give it a shot.

    You can get the wpforms.js file under /wp-content/plugins/wpforms/assets/js/ folder and copy the URL path of the file. Then you can follow the instructions shared in this documentation to manually load the file on to your website.

    Thanks!

    Hello @petedbd,

    When you have some time, can you please check if your theme’s page template does not have the wp_footer(); code? In case it helps, it’s an essential function that many plugins leverage to load assets onto pages, this also includes WPForms.

    Here’s TwentyTwenty’s theme’s footer.php file that you can take a look at for quick reference.

    Thanks!

    Hello,
    I have the same problem, could LightSpeed be the cause of it ?
    Thanks in advance

    Plugin Support Ethan Choi

    (@ethanchoi)

    Hi @takamul,

    I apologize for the delay!

    To check if this is an issue with the LiteSpeed Cache plugin, you can try the troubleshooting steps described in their documentation.

    If that does not resolve the issue, please create a new post in our support forum.

    Thanks!

    Hi,
    Same issue with me when working together with Wp-rocket.
    How to fix the issue?
    Thanks

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘WPForms has detected an issue with JavaScript on this page’ is closed to new replies.