• Hi, I fell in love with this plugin when I installed it on our stage site … worked perfectly on both WP login and WooCommerce My Account pages.

    BUT the weird thing is I can’t get it to work on our live site. The sites are identical: same up to date WordPress version, same plugins all updated. System is Windows 7 for both and each is hosted on the same hosting service.

    I’ve cleared the cache, restarted, checked that all plugins are identical and am out of ideas.

    Can you help … I hope!

    Thank you,
    Linda

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Robert Peake

    (@robertpeake)

    Your stage and live sites probably have different domains. Check your settings with Google to make sure the keys you are using in the plugin settings allow for all the domains they are being used on.

    Thread Starter IreneLinda

    (@irenelinda)

    Thanks for getting back to me so fast, Robert!

    Want to be sure about your different domains suggestion before proceeding. The domains are https://mygoforthegreen.com and https://mygoforthegreen.com/stage. Are they considered different? They do both have the same Google keys.

    Sorry to be dense on this … I’m minimally technical!

    Thanks again,
    Linda

    • This reply was modified 1 year, 7 months ago by IreneLinda. Reason: Added Google keys point
    Plugin Author Robert Peake

    (@robertpeake)

    Those two URLs would be considered in the same domain, so that may not be the issue.

    You’ll want to check that the plugin is both installed and activated, and check the plugin configuration page to see if there are any error messages.

    As the plugin is not displaying at all, it may not be active on the main site or may not be configured correctly.

    Thread Starter IreneLinda

    (@irenelinda)

    Okay, I did check and the configuration page has no error messages. Plugin is active (v.1.7).

    Everything looks good, but it just won’t show up on WooCommerce My Account page on the live site. I wouldn’t care if it was not happening on the stage site! πŸ˜‰

    Can you suggest anything else? Do you think it would help to uninstall it and reinstall it on the live site?

    Linda

    Plugin Author Robert Peake

    (@robertpeake)

    Linda, if the captcha is displaying in the settings page but not on the login form, almost certainly some other plugin is interfering with the rendering of the captcha. I had a look at your main site, and in the place where this plugin should be summoning Google to display the captcha, there is code for WP Rocket. Is it possible this is enabled on your live site but not on the staging site? Have you cleared the WP Rocket cache recently? Those are my best guesses at this point.

    You can certainly try uninstalling and reinstalling. But in these kinds of situations, almost always it is another plugin that isn’t “playing nicely” with the login form, so I’d start with triple-checking that the plugins that are installed and enabled are 100% the same between your stage and live site.

    Thread Starter IreneLinda

    (@irenelinda)

    Thanks for checking the main site. I’ve been clearing the WPRocket cache regularly as I try to work this out. What’s odd is that the reCaptcha shows on the live site WP login page but not on the My Account page.

    Just triple checked and the plugins are identical and updated. Like you, that was my first thought since it was a plugin conflict between WP Forms and NoCaptcha Recaptcha for WooCommerce that led me to your plugin.

    Is it possible this is enabled on your live site but not on the staging site?

    The plugin is enabled on both. Is that what you meant? Or did you see some source code?

    Also went through all the WP Rocket settings for live and stage just in case and they too are identical. The uninstall/reinstall didn’t work either, as you suspected.

    You’ve been very helpful and I appreciate your time and suggestions. It is very strange, but then again, what isn’t in technology when one isn’t overly technical? Sigh.

    Any idea on if there is anything more I can try?

    Thanks for trying so hard!

    Linda

    Thread Starter IreneLinda

    (@irenelinda)

    Further thought … this may be crazy, but what if I copied the source code from the My Account page on the stage site to the same page on the live site? I would try it on a new page first to see if it works. Maybe there’s something in the code that’s a bit different. I got bleary eyed trying to compare them on adjacent screens … there is just so much “stuff” there!

    Won’t do anything until tomorrow when I’m less fogged and until I hear from you so no rush.

    Linda

    Plugin Author Robert Peake

    (@robertpeake)

    Linda it looks like the hook login_enqueue_scripts is not firing properly to add the <script src="https://www.google.com/recaptcha/api.js?onload=submitDisable"></script> code into the footer

    Thread Starter IreneLinda

    (@irenelinda)

    Robert, thank you for investigating further! Should I try adding the script onto the page? In the footer? Or should I look for the code on the stage site and add it to the code on the live page?

    On rereading your reply again, you may just be identifying the code that is NOT working. If that’s the case, should I go back to just copying the source code from stage to live My Account?

    No rush … you’ve been very generous with your time! I’m going to poke around in the source code on both pages while I await your reply.

    Thanks so much,

    Linda

    • This reply was modified 1 year, 7 months ago by IreneLinda. Reason: Added new thought after rereading Robert's reply
    Plugin Author Robert Peake

    (@robertpeake)

    Sorry for the long silence, Linda. Curious to hear if you found a solution…

    Thread Starter IreneLinda

    (@irenelinda)

    Thanks for following up, Robert. No problem at all re. long silence. I’m still working on a fix with help from a wonderful Ask Woody forum contact. It has been delayed at our end, however, due to a Covid issue and then a hurricane! Almost ready to get back to it and try the code fix based on what you identified in your reply a couple of weeks ago.

    Once we’ve got the issue corrected, I’ll be sure to post back here. I’ve very much appreciated all your attempts to figure out what’s happening on our site. πŸ™‚

    Back soon,

    Linda

    Plugin Author Robert Peake

    (@robertpeake)

    Glad to hear you have some good support there. It’s a very strange issue (i.e. hasn’t come up yet as we’re approaching nearly 100k installations!) so would be curious to hear the resolution.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘ReCaptcha Fails Only on Live Site My Account Page’ is closed to new replies.