• Resolved butoru5

    (@butoru5)


    My website https://diy-electronic.ru uses WPForms Lite and contains a couple of very simple feedback forms. Each form contains Google reCaptcha v2 among other fields and for several years everything worked fine, reCaptcha protected my forms against malicious spammers (not 100% but it is another story).

    Recently I found out that reCaptcha is not being displayed in my forms any more. Presumably it happened after one of the latest WPForms updates or perhaps after theme update. I didn’t notice when exactly it happened. As a result I had to disable reCaptcha everywhere on my website to give visitors a chance to submit their messages.

    I created test page at https://diy-electronic.ru/recaptcha/ in order to understand what is going wrong. This page contains a test form and more detailed explanations of the problem.

    I tried to disable other plugins, switched themes and made a number of other experiments with this page with no result so far. Though I can see reCaptcha preview on WPForms-Settings-CAPTCHA page of my website. It tells me that combination of my Site key, my Secret key and my domain name is correct and Google accepts the request, generates corresponding html and sends it back to the web page.

    Could you please take a look at my test page at https://diy-electronic.ru/recaptcha/ and provide me with any ideas? Your advice will be highly appreciated.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @butoru5,

    Thanks for creating this topic and for sharing all the information!

    Looking at your page, it appears that the Google reCAPTCHA v2 code is not loading properly. I recorded a screencast to demonstrate this. You can try running a test on the WordPress Playground to confirm that Google reCAPTCHA v2 is working properly in a WPForms form.

    When you get the chance, could you please try using the steps in WPBeginner’s detailed guide on troubleshooting WordPress to see if it helps resolve the issue?

    If the issue persists after disabling all plugins and switching to the default WordPress theme, it may be due to a security rule on your server or something preventing Google reCAPTCHA from loading on your site. In this case, I recommend contacting your hosting provider and reporting the issue. Please share the screencast I made to show that the Google reCAPTCHA code is not loading on your site as expected.

    I hope this helps!

    Thread Starter butoru5

    (@butoru5)

    Hi Raiden,

    Thank you so much for your time and efforts and especially for the screencast you prepared. It gives me a lot of useful information for further investigation of my problem. And I certainly will follow your advice regarding troubleshooting WordPress Guide. However it may take some time because I am slightly afraid to make serious changes (like switching off all plugins, etc.) in the production environment. I have staging environment but it is outdated and first of all I will need to make a copy of current web site there in order to proceed with experiments.

    One note for now. In your comment and in your screencast, you mentioned that you were expecting some network issues, such as firewall rules preventing from loading a piece of HTML code from Google’s web service onto my page. I don’t think that’s the case. I added screenshot at the bottom of my test page https://diy-electronic.ru/recaptcha/ showing WPForms-Settings-CAPTCHA page from my web site (click to enlarge). Among other fields one can see reCaptcha preview generated by Google here. It means that the problem with reCaptcha is not related with my hosting provider limitations but most probably with the conflict between WPForms JS or CSS and some other plugin’s JS or CSS. WordPress Admin’s part (including WPForms admin pages) doesn’t load various plugins when ordinary web site pages do load them and as a result we can see Google reCaptcha in Admin’s page but can’t see it in ordinary pages. Does it have sense?

    By the way, I tried to activate No-Conflict Mode switch shown in that screenshot but with no result.

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @butoru5,

    Thanks for the details and feedback.

    I totaly agree that the issue could be a “conflict between WPForms JS or CSS and some other plugin’s JS or CSS.”

    I apologize for any confusion regarding my initial suggestion that the issue might be related to firewall rules. 

    In your screenshot, I saw that the Google reCAPTCHA preview works on your site.

    However, if the issue isn’t related to a conflict with another plugin or code in your theme, it could be related to server settings, such as security rules affecting the front end but not the admin area.

    I hope the information and screencast I previously provided help you discover what is causing the issue. If you have any questions, please let me know.

    Thanks!

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @butoru5,

    We haven’t heard back from you in a few days, so I’m going to go ahead and close this thread for now.

    However, if the issue persists in an updated staging environment you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

    Thread Starter butoru5

    (@butoru5)

    Hi @rsouzaam,

    I found out plugin conflicting with WPForms on my site. It is User Registration & Membership (URM) ( https://wordpress.org/plugins/user-registration/ ). Deactivating all plugins one-by-one I found out that as soon as I deactivate URM then the captcha appears in all my WPForm forms.

    Now I am looking for a method to resolve the conflict between two plugins because I need them both and I don’t want to give up either one. Seeing that I never need both plugins on the same page I am looking for the solution giving a chance to load plugins selectively – WPForms only to those pages which use it and URM to pages related with user registration only.

    I discovered at least 2 plugins that can help with this task – it is Plugin Load Filter https://wordpress.org/plugins/plugin-load-filter/ and Plugin Organizer https://wordpress.org/plugins/plugin-organizer/ . What do you think about these two plugins? Do you think that using one of them may resolve the conflict between WPForms and URM plugins in my web site?

    By the way, I think that using selective loading of plugins only on pages that need them is useful anyway, since disabling unused plugins on a page significantly speeds up page loading.

    • This reply was modified 2 days, 14 hours ago by butoru5.
Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.