Forums / General Questions / Telephone number gives error when minimum value is any number above zero

Telephone number gives error when minimum value is any number above zero

Views: 2,673

Results 1 to 20 of 22
7 Oct 2014, 11:48 PM
#1
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Telephone number gives error when minimum value is any number above zero

I am not sure when it started happening, but when I make the telephone number mandatory (for account creation) by setting the minimum value above zero, I get the following error messageAttachment 14582

In the screenshot it says a minimum of 6 is needed, but I had actually input 10. If I turn the minimum value to zero, then even if I enter a 10 digit telephone number, it doesn't get passed through to the customer details. I have had two customers bring it to my attention, but have unsuccessfully been able to find a solution. I have been using Zen Cart for several years now and have never had this happen. I did upgrade to v153 in March but everything was working smoothly then.

Does anyone have an idea as to what I can do to fix this? Or what the problem could be? Thank you.

http://monumentsplus.com

8 Oct 2014, 12:11 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Telephone number gives error when minimum value is any number above zero

Graniteman22:

I am not sure when it started happening, but when I make the telephone number mandatory (for account creation) by setting the minimum value above zero, I get the following error messageAttachment 14582

In the screenshot it says a minimum of 6 is needed, but I had actually input 10. If I turn the minimum value to zero, then even if I enter a 10 digit telephone number, it doesn't get passed through to the customer details. I have had two customers bring it to my attention, but have unsuccessfully been able to find a solution. I have been using Zen Cart for several years now and have never had this happen. I did upgrade to v153 in March but everything was working smoothly then.

Does anyone have an idea as to what I can do to fix this? Or what the problem could be? Thank you.

http://monumentsplus.com

Typical answers to the posting guidelines would help. Ie. How was the upgrade performed (complete rebuild, upgrade in place, etc...)
Where did the upgrade softwaare come from? (This site, a one click install, etc...)
From what version?
Other questions related to the situation... (Plugins, etc...)

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

8 Oct 2014, 12:22 AM
#3
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

mc12345678:

Typical answers to the posting guidelines would help. Ie. How was the upgrade performed (complete rebuild, upgrade in place, etc...)
Where did the upgrade softwaare come from? (This site, a one click install, etc...)
From what version?
Other questions related to the situation... (Plugins, etc...)

If I remember correctly, I did do the one click upgrade to v153 from v151 on Godaddy. Prior to that, I had always downloaded it from here. I completed that in March and didn't have one customer mention it and we also received phone numbers for a while after that upgrade. I think the problem first started sometime in August. I don't recall using a plugin that would affect any of the files associated with creating an account. Most of the plugins I had with previous versions are not available for v153.

8 Oct 2014, 12:43 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Telephone number gives error when minimum value is any number above zero

Be sure that each time you change the Minimum Quantity that you refresh the screen before testing the new message ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2014, 12:56 AM
#5
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

Ajeh:

Be sure that each time you change the Minimum Quantity that you refresh the screen before testing the new message ...

Just tried that and it is still giving me the same error message as before. Is it more likely that the problem is in one of the create account codes? Or a database issue?

8 Oct 2014, 1:01 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Telephone number gives error when minimum value is any number above zero

Check your two configure.php files:
/includes/configure.php
/your_secret_admin/includes/configure.php

that they are using the same database information ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2014, 1:09 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Telephone number gives error when minimum value is any number above zero

Graniteman22:

If I remember correctly, I did do the one click upgrade to v153 from v151 on Godaddy. Prior to that, I had always downloaded it from here. I completed that in March and didn't have one customer mention it and we also received phone numbers for a while after that upgrade. I think the problem first started sometime in August. I don't recall using a plugin that would affect any of the files associated with creating an account. Most of the plugins I had with previous versions are not available for v153.

Although there have been other inquiries, I did want to follow up on this. The absence of notification of an issue is not the same as it working. As this affects the ability to create a new account, the question would be how many new customers havbe established an account and perhaps it would be worthwhile knowning/determining how they created it. An autocreate through say paypal or an actual account create via the login page...

I guess basically saying, there are many ways to try to address; however, the absence of customer feedback is not necessarily an indication of acceptance in this case. :)

Also, regarding plugins, is it that they are not compatible, not identified as compatible, or haven't been tested? Some still work with the more up-to-date sites, but have not been identified to do so...

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

8 Oct 2014, 1:20 AM
#8
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

Ajeh:

Check your two configure.php files:
/includes/configure.php
/your_secret_admin/includes/configure.php

that they are using the same database information ...

Yes, both are the same.

8 Oct 2014, 1:30 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Telephone number gives error when minimum value is any number above zero

As a check, go to phpMyAdmin and search your database in the table:
configuration

for the field:
configuration_key

for:
ENTRY_TELEPHONE_MIN_LENGTH

What does it read?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2014, 1:31 AM
#10
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

mc12345678:

Although there have been other inquiries, I did want to follow up on this. The absence of notification of an issue is not the same as it working. As this affects the ability to create a new account, the question would be how many new customers havbe established an account and perhaps it would be worthwhile knowning/determining how they created it. An autocreate through say paypal or an actual account create via the login page...

I guess basically saying, there are many ways to try to address; however, the absence of customer feedback is not necessarily an indication of acceptance in this case. :)

Also, regarding plugins, is it that they are not compatible, not identified as compatible, or haven't been tested? Some still work with the more up-to-date sites, but have not been identified to do so...

When the telephone number is set to zero, the customer creation process works (via the straight up create account interface built into ZC), It is only when I try making it mandatory that the issue arises. After I was first notified by the first customer ( I was busy at the time) the quick fix was to change it to zero. Then we noticed that no one was leaving phone numbers and we have to contact customers from time to time to get answers to questions.

8 Oct 2014, 1:40 AM
#11
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

Ajeh:

As a check, go to phpMyAdmin and search your database in the table:
configuration

for the field:
configuration_key

for:
ENTRY_TELEPHONE_MIN_LENGTH

What does it read?

ENTRY_TELEPHONE_MIN_LENGTH
0
Minimum length of telephone number
2
10
2014-10-07 20:54:58
2007-06-25 15:00:50

I currently have it set to zero at the moment.

8 Oct 2014, 1:48 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Telephone number gives error when minimum value is any number above zero

If you go to your Zen Cart Admin and to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
ENTRY_TELEPHONE_NUMBER_ERROR

and select Catalog then click search ...

Do all the lines that start with:
check_input

Read as:

check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2014, 1:57 AM
#13
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

Ajeh:

If you go to your Zen Cart Admin and to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
ENTRY_TELEPHONE_NUMBER_ERROR

and select Catalog then click search ...

Do all the lines that start with:
check_input

Read as:

check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");


Yes they do.  I copied and pasted all of them in word pad vertically to compare with your code and they are all the same.
8 Oct 2014, 3:22 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Telephone number gives error when minimum value is any number above zero

I hate to beat a dead horse, but if you go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
define('DB_DATABASE', '

and search the Catalog/Admin ... do the two lines for the two configure.php files both read the same database name?

Do not post them here, just confirm that they are the same ...

So far, I cannot recreate this issue no matter what I do, so I am just taking a few stabs in the dark to find some difference ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2014, 3:29 AM
#15
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

Ajeh:

I hate to beat a dead horse, but if you go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
define('DB_DATABASE', '

and search the Catalog/Admin ... do the two lines for the two configure.php files both read the same database name?

Do not post them here, just confirm that they are the same ...

So far, I cannot recreate this issue no matter what I do, so I am just taking a few stabs in the dark to find some difference ...

Yes they are the same. Maybe I should replace the code in all the "create account" files with v153 downloaded from ZC in case something got changed along the way?

8 Oct 2014, 3:31 AM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Telephone number gives error when minimum value is any number above zero

I am game as I am running out of ideas ... :lookaroun

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2014, 3:35 AM
#17
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

Ajeh:

I am game as I am running out of ideas ... :lookaroun

I am not sure exactly how many files that would be or where they all would be. Which files should I overwrite? I appreciate the time you spent on this.

8 Oct 2014, 3:39 AM
#18
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

The thing that really seems odd to me about this is that if there is an error message due to not entering the correct data in a "required field", then the error message should be in a popup like all the other error messages for that interface. But for some reason, the error shows up in red on actual page and not in a pop up.

8 Oct 2014, 4:01 AM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Telephone number gives error when minimum value is any number above zero

As a test, what happens if you switch to the Classic Template on your site?

Does anything change?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2014, 4:14 AM
#20
graniteman22 avatar

graniteman22

New Zenner

Join Date:
Jan 2014
Location:
Michigan
Posts:
27
Plugin Contributions:
0

Re: Telephone number gives error when minimum value is any number above zero

Ajeh:

As a test, what happens if you switch to the Classic Template on your site?

Does anything change?

I get a captcha error message...but there is no captcha that shows up on that page to enter anything in classic