Forums / Upgrading to 1.5.x / v150 Premature end of script 500 error when adding user/customer

v150 Premature end of script 500 error when adding user/customer

Views: 2,644

Results 1 to 8 of 8
24 May 2012, 4:29 PM
#1
meb2012 avatar

meb2012

New Zenner

Join Date:
May 2012
Posts:
7
Plugin Contributions:
0

v150 Premature end of script 500 error when adding user/customer

Hello zennites,

When users fill out new user info and submit, a 500 ISE warning pops up instantly. The info IS correctly added to the DB and is usable - logging in with the new user credentials works fine. However, I really don't want users encountering 500 Internal Server Error page!

I'm receiving this session log error:

Premature end of script headers: php-stable, referer: https://cart.xxxxxxxx.xxx/index.php?main_page=create_account

I've confirmed permissions are correct, the php error log and the zen debug log show no errors; only the session log.

What say you? Thanks!

24 May 2012, 6:56 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: v150 Premature end of script 500 error when adding user/customer

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

24 May 2012, 9:29 PM
#3
meb2012 avatar

meb2012

New Zenner

Join Date:
May 2012
Posts:
7
Plugin Contributions:
0

Re: v150 Premature end of script 500 error when adding user/customer

Thanks DrByte!

Yep, I've reviewed all logs as indicated in the pages you linked. I haven't made any code changes or installed any modules and it's a fresh install. I'll try the file compare.

26 May 2012, 6:14 PM
#4
meb2012 avatar

meb2012

New Zenner

Join Date:
May 2012
Posts:
7
Plugin Contributions:
0

Re: v150 Premature end of script 500 error when adding user/customer

Problem corrected – sort of.

Thanks to the hint in my server log about the Create Account failure, I was able to eventually narrow the problem down to the "Send Welcome Email" function in the create_account.php file. Disabling the function lets everything else function correctly.

If this link answers the how-to question: http://www.zen-cart.com/showthread.php?64986-Turning-Send-Welcome-email-option-off&highlight=turn%20off%20welcome%20email

This installation of Zencart was a 'one-click' install utilizing Media Temples account controls. There is obviously an error in the code that I haven't sourced yet. Silly me thought that the one-click installation would have error-free code.

Hope this helps somebody.

27 May 2012, 3:50 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: v150 Premature end of script 500 error when adding user/customer

MEB2012:

This installation was a 'one-click' install utilizing Media Temples account controls. There is obviously an error in the code that I haven't sourced yet. Silly me thought that the one-click installation would have error-free code.
Quite the opposite.
The Zen Cart developers have no control over the one-click install tools built by hosting companies. While they are convenient, they aren't always correct.
And should NEVER be used for upgrading a site. Just saying.

.
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 May 2012, 3:51 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: v150 Premature end of script 500 error when adding user/customer

That said, your email problem might be simply that your server doesn't fully support the email method you've got your Zen Cart configured to use. Try a different Transport Protocol, such as SMTPAUTH.
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Email_Problems
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Understanding_Causes_Of_Lost_Emails

.
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 May 2012, 4:08 AM
#7
meb2012 avatar

meb2012

New Zenner

Join Date:
May 2012
Posts:
7
Plugin Contributions:
0

Re: v150 Premature end of script 500 error when adding user/customer

Thanks Dr.B,

I may give that a try soon. However, all of the other emails do get sent correctly with no issues; it's just the generation of the Welcome Email after completing the New User sign-up info.

This was a clean install of the Zencart 1.5.0 and not an upgrade so I've dodged that bullet – and it looks to be the straight up Zencart with nothing unique added by the hosting company. It did have the Classic template included which I engaged and changed only the cosmetics. Since the email errors only seem to be for that one Welcome function, I'll take a closer look at the code and see what I can find.

But for now, the client is happy so I'm happy!

27 May 2012, 4:42 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: v150 Premature end of script 500 error when adding user/customer

You're welcome.

Don't be afraid to share the love: https://www.zen-cart.com/donate

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