Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Staes Pulldown Menu

Locked

Started by jollyjim on 12 Jun 2006, 9:11 PM · Views: 3,018

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
12 Jun 2006, 9:11 PM
#1
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #1 by jollyjim

I just started to convert a store to a UK configuration. I have added the UK zones based on the UKTemplate Mod and all the changes needed for admin.

When I test on my local windows box I keep getting the error message:
Please select a state from the States pull down menu.

The pull down states menu does not appear until AFTER all the information is entered and I receive the above message, then I refresh the page and the pulldown appears.

With the online site on a UNIX box, sometimes neither the pulldown nor the message appears, at other times it appears only after the information has been entered.

Also, on the online version, I get an error message related to the email not being sent. On the offline version, the account gets created but the user is not logged in and cannot log in - just returns to the index page.

Warning: strstr() [function.strstr]: Empty delimiter. in /home/yourstore/public_html/testshop/includes/functions/functions_email.php on line 91

Warning: Cannot modify header information - headers already sent by (output started at /home/yourstore/public_html/testshop/includes/functions/functions_email.php:91) in /home/yourstore/public_html/testshop/includes/functions/functions_general.php on line 41

The version is 1.3.1

Any ideas - my head hurts?

12 Jun 2006, 9:57 PM
#2
kobra avatar

kobra

Black Belt

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

Post #2 by kobra

JollyJim,

Are these upgrade installs form 1.2.x or fresh 1.3.x installs with fresh DB?

I reccently ran into a multitude of problems with the upgrade situation. Which type are you attempting for this?

Zen-Venom Get Bitten

12 Jun 2006, 10:03 PM
#3
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #3 by jollyjim

Hi Kobra

This is a fresh install of 1.3.1

I used portions of the UKTemplate mod mysql to create the UK towns and cities, but other than this everything is 1.3.1 code. I even manually changed the admin pages line by line to make the text suitable for the UK so the code did not break.

13 Jun 2006, 12:37 AM
#4
kobra avatar

kobra

Black Belt

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

Post #4 by kobra

From my limited experience and knowledge of php;

It is your first error that is the offender and this creates the 'headers already sent' error. At least when I get this I look first to the initial error.

Was functions_email.php a file that was edited/changed? and/or is it this code for line#91 in your install?

while (strstr($email_text, $zen_fix_current)) $email_text = str_replace($zen_fix_current, $zen_fix_replace, $email_text);

Or could it be another file that might have been altered making an out of place call to the above?

I know that this is not the first time that you have setup 1.3.x...So you have most likely verified the MySQL, php, Apache etc on the host and your local has probably seen many installs.

Am I correct in assuming that the host install was setup up locally and copied to the host re-setting the required pathing & DB entries?

Zen-Venom Get Bitten

13 Jun 2006, 12:55 AM
#5
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #5 by jollyjim

Hi Kobra

Thanks for taking the time to reply.

Yes, you are correct in that the upload was from the local server and the config files changed. I tested the local server with a fresh install of Z1.3.1 and got the same login issues when creating an account without any mods installed. This is on an Apache/XP Wamp.

So I dumped the original admin files from the default ZC install up to the Unix Box - and trashed the admin section totally. I think this is something to do with the Admin Profiles mod.

So now I am creating a default Zencart install in a local directory ready for upload. Then I am creating upload folders for each mod (e.g. the templates and language files etc), then I am uploading one by one until everything is online in a fresh directory.

The email_functions.php has not been modified as far as I can remember but you may be right - there is most likely something arguing with another file somewhere.

Ho Hum - looks like a long night. At least I will be able to isolate the problem (hopefully) LOL

13 Jun 2006, 1:10 AM
#6
kobra avatar

kobra

Black Belt

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

Post #6 by kobra

I tested the local server with a fresh install of Z1.3.1 and got the same login issues when creating an account without any mods installed.
If I understand this correctly, this is bothersome...a bone stock ZenCart from original fileset with no alterations on a fresh DB and still got the bad behaviour???

Have you triple checked the unpacked distro? I have this on my local and find that in the heat of some excercise that I inadvertantly grab a file that I know(or believe) to be pristine and promptly forget that I might have also saved the changes to my distro set...next time I use for an install woe is me...and I just don't learn...

Zen-Venom Get Bitten

13 Jun 2006, 1:17 AM
#7
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #7 by jollyjim

kobra:

If I understand this correctly, this is bothersome...a bone stock ZenCart from original fileset with no alterations on a fresh DB and still got the bad behaviour???

Have you triple checked the unpacked distro? I have this on my local and find that in the heat of some excercise that I inadvertantly grab a file that I know(or believe) to be pristine and promptly forget that I might have also saved the changes to my distro set...next time I use for an install woe is me...and I just don't learn...

Bothersome is a bit of an under statement. You should have heard me swearing at the computer earlier. I was taken with rage like a scene from Fawlty Towers. Even threatened to thrash it with a wet tissue - all to no avail.

Nope - this is a fresh download of the stock install for ZC. It simply refuses to log in when I create an account. But to satisfy myself I am uploading the installation to the UNIX box and starting over with it.

Don't you just love it when you have everything set up nicely and it falls over for no reason - damn - I love this job :)

I will let you know if the new install works - most likely I have missed out a ; somewhere on a file and this will be the problem LOL

13 Jun 2006, 1:31 AM
#8
kobra avatar

kobra

Black Belt

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

Post #8 by kobra

Please do keep me informed...

and it is always that head smaker that gets ya. You thought that we were all born with flat foreheads...did ya??

Zen-Venom Get Bitten

13 Jun 2006, 1:35 AM
#9
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #9 by jollyjim

kobra:

Please do keep me informed...

and it is always that head smaker that gets ya. You thought that we were all born with flat foreheads...did ya??

...and here is me thinking it was because my mother kept hitting me in the face with a frying pan...

....well damn! You learn summat new every day!

13 Jun 2006, 1:59 AM
#10
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #10 by jollyjim

Well that did not work. Stock install of ZC and no products. Create an account and exactly the same problems.

But The email is actually getting sent despite displaying the error message in the browser.

So, it is not any of the add-ons. The only changes are the template mods (which don't include the create account page yet) and the Sales Report 1.4.

Sidebox Login Mod - installed
Sales Report 1.4 Installed
Column Grid Layout Installed

Added UK config for towns and villages modded from the UKTemplate Mod.

Other than this - stock install.

Aw NUTZ!

14 Jun 2006, 12:49 AM
#11
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #11 by jollyjim

Quick update on this problem. The email verification error message still persists and is still unsolved I am afraid. I have managed to whittle down potential causes. Initially I thought it was a problem with the Date of Birth fields being changed but having spent all day reworking the code (and trying to use the pull-down menu mod which kept throwing a javascript error no matter what I did), I can say this is not the date of birth chanegs causing the problem.

At this stage I don't think it is a bug in Zencart either. I "suspect" it is a server configuration issue - open basedir problem to be precise. I will be able to verify this sometome tomorrow once I have chatted to the web host.

Two things are bugging me.

  1. The DOB issue when trying to use the pulldown menu mod always throws a javascript error and I don't understand why. (Yes I can turn this off but that does not tell me why it does not work. Anyone who wants a copy of the code changes I made is welcome to have a peek.

  2. The States Pull down menu is still showing as a form field instead of a pull-down when the account page loads. It should be a pull-down and I cannot find anywhere to make changes so this appears instead of the form field.

Suggestions most welcome. I am running out of ideas.

14 Jun 2006, 12:27 PM
#12
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #12 by jollyjim

Update This is not a problem with openbasedir restrictions.

After account creation, the user gets presented with this message but the email is still sent:

Warning: strstr() [function.strstr]: Empty delimiter. in /home/assfash/public_html/shop/includes/functions/functions_email.php on line 91

Warning: Cannot modify header information - headers already sent by (output started at /home/assfash/public_html/shop/includes/functions/functions_email.php:91) in /home/assfash/public_html/shop/includes/functions/functions_general.php on line 41

assuming they even bother to get past the States Pulldown Menu issue, they then get the above message.

Since nobody has any clue on this and I cannot figure it out I will post a bug report in the Bugs Forum in the hope one of the Zencart Dev Team can respond.

19 Jun 2006, 3:39 AM
#13
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Post #13 by audradh

Here is some interesting information regarding the states pulldown menu not showing until after receiving an error and the page refreshing:

  1. I have this same problem on my site. I have yet to troubleshoot it, so I do not know if it is intermittent or consistent.

  2. I recently created an account on an OSC site and saw the same problem. :ohmy:

Audra

19 Jun 2006, 10:56 AM
#14
jollyjim avatar

jollyjim

Totally Zenned

Join Date:
May 2005
Location:
Cheshire, UK
Posts:
401
Plugin Contributions:
2

Post #14 by jollyjim

audradh:

Here is some interesting information regarding the states pulldown menu not showing until after receiving an error and the page refreshing:

  1. I have this same problem on my site. I have yet to troubleshoot it, so I do not know if it is intermittent or consistent.

  2. I recently created an account on an OSC site and saw the same problem. :ohmy:

Audra

Hi Audra

Yes - this is a "legacy" code issue which has been inherited from the old OSC code. Look for the StatesSelector Mod contributed by a_berezin and this will solve your problem.

Let me know if it works for you - it did the trick for me.

JJ