If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / Customers can't create accounts after installing Recaptcha.

Customers can't create accounts after installing Recaptcha.

Started by dungeonstone on 26 Oct 2020, 6:22 PM · Views: 4,614

Results 1 to 15 of 15
26 Oct 2020, 6:22 PM
#1
dungeonstone avatar

dungeonstone

New Zenner

Join Date:
Aug 2013
Location:
Houston
Posts:
8
Plugin Contributions:
0

Customers can't create accounts after installing Recaptcha.

I installed Recaptcha a few weeks ago and everything was working fine through last Friday (the last time a new account was created) but suddenly today I am getting emails from customers stating that they can't create accounts.

I tried it myself and now once the "My account information" is filled out and ReCaptcha is checked the page just refreshes back to the (filled out) form rather than processing and creating the account.

I've tried enabling and disabling most of the fields in the form but the problem persists even when all that is required is the name, email address and password.

I've checked with my hosting service and they say that nothing was changed on their side over the weekend.

https://www.dungeonstone.com

26 Oct 2020, 8:14 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Customers can't create accounts after installing Recaptcha.

I would recheck with bluehost to make sure they didn't drop your ancient PHP.

Most hosts are dropping PHP 5.6

and 1.3.9h Zen Cart has problems with 5.4.

Really is time to upgrade.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

26 Oct 2020, 8:54 PM
#3
dungeonstone avatar

dungeonstone

New Zenner

Join Date:
Aug 2013
Location:
Houston
Posts:
8
Plugin Contributions:
0

Re: Customers can't create accounts after installing Recaptcha.

I've tracked down the issue.

It looks like the line..

$zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');

In : /includes/modules/YOUR_TEMPLATE/create_account.php

...is causing the glitch because the account system will process new accounts correctly once that line has been deleted.

Which makes me think that my site is either not processing or not receiving the confirmation from Google as to the ReCaptcha verification.

Of course that means that the Recaptcha system is also rendered ineffective with that line removed.

26 Oct 2020, 9:17 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Customers can't create accounts after installing Recaptcha.

Dungeonstone:

In : /includes/modules/YOUR_TEMPLATE/create_account.phpUnless you have that file and its buddies in darkness2 templlate folder, it ain't gonna work.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

26 Oct 2020, 9:55 PM
#5
dungeonstone avatar

dungeonstone

New Zenner

Join Date:
Aug 2013
Location:
Houston
Posts:
8
Plugin Contributions:
0

Re: Customers can't create accounts after installing Recaptcha.

It's in darkness2.

/includes/modules/darkness2/create_account.php

I was just quick copying the folder information from the instruction file.

27 Oct 2020, 4:51 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Customers can't create accounts after installing Recaptcha.

I'm pretty sure that the ancient v1.3.9 doesn't have all the support for notifier/observer code in it the way recent versions do.
It's quite possible that if you've retrofitted your old version with parts and pieces that rely on the newer features of the notifier/observer functionality but haven't fully implemented all the ways it has been updated, but are using a plugin that depends on those features ... then it feels reasonable that you're triggering errors due to missing functionality that the plugin depends on.

Perhaps debug logs may reveal some PHP errors that are being triggered? Worth checking.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Oct 2020, 10:33 AM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Customers can't create accounts after installing Recaptcha.

DrByte:

Perhaps debug logs may reveal some PHP errors that are being triggered? Worth checking.
Debug logging in v1.3.9 was pretty rudimentary. Be sure to look in the site's /cache directory, since the /logs directory didn't come into being until v1.5.1.

27 Oct 2020, 5:22 PM
#8
dungeonstone avatar

dungeonstone

New Zenner

Join Date:
Aug 2013
Location:
Houston
Posts:
8
Plugin Contributions:
0

Re: Customers can't create accounts after installing Recaptcha.

There are no recent debug logs.

I've also looked in the Cache directory.

There have been no new files created there in over three years. The ones from 2016-2017 are regarding problems related to a PHP board that I used to run that on my site I have since deleted.

27 Oct 2020, 8:53 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Customers can't create accounts after installing Recaptcha.

Dungeonstone:

There are no recent debug logs.

I've also looked in the Cache directory.

There have been no new files created there in over three years. The ones from 2016-2017 are regarding problems related to a PHP board that I used to run that on my site I have since deleted.
Unfortunately that too seems "unlikely" (awaiting return from recoil)... more than likely debug logging has been disabled in some way as it is unlikely that a system over the last three years that is still "declared" as 1.3.9 would not have a debug issue identified to it.

Such disablement may be associated to the error logging software not being present, the folder access rights not permitting generation, the folder being full (though that too would effect operation) or possibly a change made to the existing logging software to prevent logging. A backup check would be to look at the server logs.

It could be possible that there truly are no log worthy issues, but that would likely depend on keeping the code up-to-date, which also seems unlikely otherwise would expect the version to be up-to-date...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Oct 2020, 10:35 PM
#10
dungeonstone avatar

dungeonstone

New Zenner

Join Date:
Aug 2013
Location:
Houston
Posts:
8
Plugin Contributions:
0

Re: Customers can't create accounts after installing Recaptcha.

Folder rights (write access) is open on the logs and cache directories.

The folders are not full.

The most recent file in the cache directory is the .htaccess file created Oct. 19th 2019

The most recent file in the logs directory is a visitor access log I created also in Oct. of 2019.

The only errors that I am seeing on the hosting side of things are the daily list of AH01797 errors generated by my IP banning list blocking (most) Russian and Chinese IPs from accessing the site.

28 Oct 2020, 12:52 AM
#11
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Customers can't create accounts after installing Recaptcha.

Dungeonstone:

Folder rights (write access) is open on the logs and cache directories.

The folders are not full.

The most recent file in the cache directory is the .htaccess file created Oct. 19th 2019

The most recent file in the logs directory is a visitor access log I created also in Oct. of 2019.

The only errors that I am seeing on the hosting side of things are the daily list of AH01797 errors generated by my IP banning list blocking (most) Russian and Chinese IPs from accessing the site.

I played nice and only did a half walk-around for reCaptcha... created an account no problems, logged off, reloaded and logged in again... I didn't receive a welcome email yet!

If the emails came from your site contact_us page, then reCaptcha must be working. I created an account, so again... it must be working.. If you have a good host, then you should have access to your php error logs, start there. Plan to update, old PHP has known holes..

Dave
Always forward thinking... Lost my mind!

28 Oct 2020, 10:27 PM
#12
dungeonstone avatar

dungeonstone

New Zenner

Join Date:
Aug 2013
Location:
Houston
Posts:
8
Plugin Contributions:
0

Re: Customers can't create accounts after installing Recaptcha.

davewest:

I played nice and only did a half walk-around for reCaptcha... created an account no problems, logged off, reloaded and logged in again... I didn't receive a welcome email yet!

That's odd, I received my copy of your welcome email. Yours should have been generated and sent at the same time.

It could be because you used a Gmail acct. It always seems hit or miss as to whether their servers will pass emails from our mail server through or shove them off into some hidden "spam" folder on their side of the system.

Sometimes the emails go through just fine, other times it seems like Gmail just deletes them without notifying anyone.

29 Oct 2020, 3:17 AM
#13
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Customers can't create accounts after installing Recaptcha.

Dungeonstone:

That's odd, I received my copy of your welcome email. Yours should have been generated and sent at the same time.

It could be because you used a Gmail acct. It always seems hit or miss as to whether their servers will pass emails from our mail server through or shove them off into some hidden "spam" folder on their side of the system.

Sometimes the emails go through just fine, other times it seems like Gmail just deletes them without notifying anyone.

I've not had any problems with gmail or others and I didn't see anything in my spam box... many tools online to check your MX ans SPF records.. You can also check if you made the spam block lists..

Dave
Always forward thinking... Lost my mind!

31 Oct 2020, 12:26 AM
#14
dungeonstone avatar

dungeonstone

New Zenner

Join Date:
Aug 2013
Location:
Houston
Posts:
8
Plugin Contributions:
0

Re: Customers can't create accounts after installing Recaptcha.

davewest:

I've not had any problems with gmail or others and I didn't see anything in my spam box... many tools online to check your MX ans SPF records.. You can also check if you made the spam block lists..

This has been an ongoing thing with Gmail for years now.

Sometimes, a customer will get no emails or notifications (and I will get no rejection notices), while another customer making an account on the same day (also using gmail) will receive everything without any problems.

And when I have called the customers that don't get the emails and asked them about it directly they also don't have anything in their spam folders.

And according to Google, I am not on their block list.

31 Oct 2020, 1:40 AM
#15
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Customers can't create accounts after installing Recaptcha.

It's not Gmail's fault that your site has no DMARC settings, incorrect SPF/MX, or SOA records presented to it with your emails. Ask your host.

https://tools.dnsstuff.com/#dnsReport|type=domain&&value=dungeonstone.com

Or, more precise, run some tests at https://mxtoolbox.com/SuperTool.aspx

When Gmail is dropping your emails in the bit bucket, you know you have serious setup problems.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com