Forums / Managing Customers and Orders / how to debug why customer accounts not created??

how to debug why customer accounts not created??

Views: 1,394

Results 1 to 8 of 8
11 Apr 2013, 1:24 AM
#1
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

how to debug why customer accounts not created??

People are getting this error when trying to set up accounts on our ZC site:

Please Log In
Error An error happened when you tried to log in. Please check that you correctly typed your email address and/or password.

Where do I find info on how to debug this??

Is there anything ELSE I can do besides looking in the the /cache/ folder to see the PHP debug logs???

Thank you, Tom

11 Apr 2013, 1:28 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

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

Re: how to debug why customer accounts not created??

tlyczko:

Is there anything ELSE I can do besides looking in the the /cache/ folder to see the PHP debug logs???YES!
You can reply with the answers to the posting tips so that we can help. If you can give us a link but don't want it published, just give it as MySiteDOTcom or similar.

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

11 Apr 2013, 2:07 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: how to debug why customer accounts not created??

Is there anything ELSE I can do besides looking in the the /cache/ folder to see the PHP debug logs???
You did not state what version of ZenCart you have???

Later versions place the debug files in /logs

Zen-Venom Get Bitten

11 Apr 2013, 2:09 AM
#4
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Re: how to debug why customer accounts not created??

version 1.3.9h -- don't tell me to upgrade :)
VERSION NUMBER IS NOW ALWAYS IN THE SUBJECT LINE

no plugins addons installed in last 3 weeks
normal install ZC 2+ years ago
Database Host: localhost (127.0.0.1)
Server OS: Linux 2.6.18-308.24.1.el5 Database: MySQL 5.1.68-cll
Server Date: 04/10/2013 21:07:00 Database Date: 04/10/2013 21:07:00
Server Up Time: Disabled/Unavailable HTTP Server: Apache
PHP Version: 5.3.22 (Zend: 2.3.0) PHP Memory Limit: 128M PHP Safe Mode: Off
PHP File Uploads: On Max Size: 20M POST Max Size: 20M
Database Data Size: 5,629 kB Database Index Size: 1,181 kB

problem started within last 2-3 weeks
most recent usable customer entry was 3/26/13 or so
only change I can recall during this timeframe is editing define_main_page.php
already looked in wiki -- nothing about customers not being able to create accounts

URL is https://www.bristolbayflies.com

11 Apr 2013, 3:42 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: how to debug why customer accounts not created??

tlyczko:

Error An error happened when you tried to log in. Please check that you correctly typed your email address and/or password.
The very first step in finding out the exact cause is to find that exact error message in your PHP files.
But the exact error message you quoted doesn't seem to exist in original Zen Cart files.

Steps:

  1. find the exact error message text in your language files. The Developers Toolkit has a language-files-search which is very useful for this.
  2. For the "define" where that message appears, grab the first half (the "constant") of that define statement, and then do another search for that across all the PHP files on your site.
  3. Then in the files where that constant is found, follow the logic to see what's going on there to specifically trigger that error message to be displayed.

Syntax lesson on "define" statements:
define('NAME_OF_CONSTANT_HERE', 'Defined text here');
constant = NAME_OF_CONSTANT_HERE
text/string/value = 'Defined text here'

.
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.

11 Apr 2013, 5:40 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: how to debug why customer accounts not created??

no plugins addons installed in last 3 weeks

problem started within last 2-3 weeks
What did you install/alter 3 weeks ago?

Zen-Venom Get Bitten

13 Apr 2013, 7:59 PM
#7
tlyczko avatar

tlyczko

Zen Follower

Join Date:
Dec 2003
Location:
UPstate NY
Posts:
398
Plugin Contributions:
1

Re: how to debug why customer accounts not created??

DrByte:

The very first step in finding out the exact cause is to find that exact error message in your PHP files.
But the exact error message you quoted doesn't seem to exist in original Zen Cart files.

Steps:

  1. find the exact error message text in your language files. The Developers Toolkit has a language-files-search which is very useful for this.
  2. For the "define" where that message appears, grab the first half (the "constant") of that define statement, and then do another search for that across all the PHP files on your site.
  3. Then in the files where that constant is found, follow the logic to see what's going on there to specifically trigger that error message to be displayed.

Syntax lesson on "define" statements:
define('NAME_OF_CONSTANT_HERE', 'Defined text here');
constant = NAME_OF_CONSTANT_HERE
text/string/value = 'Defined text here'

I tried this but am not sufficiently fluent in PHP to figure out where/how the error occurs.
Is there a way to have PHP display debug messages at differnet points within the php file's processing??
I also discovered that the forgotten password routine no longer works...it's as though the customer table is not there any more...
AND no debug logs are being created whatsoever so that means ZC thinks everything is normal even though its not :(
Thank you, Tom

14 Apr 2013, 1:33 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: how to debug why customer accounts not created??

I posted my previous reply in hopes that you'd follow the instructions and post your findings, at least for the first step.

.
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.