Results 1 to 8 of 8
  1. #1
    Join Date
    May 2012
    Posts
    6
    Plugin Contributions
    0

    Default 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:
    Code:
    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!

  2. #2
    Join Date
    Jan 2004
    Posts
    58,284
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: v150 Site works except when adding user/customer - Premature end of script 500 er

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    May 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: v150 Site works except when adding user/customer - Premature end of script 500 er

    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.

  4. #4
    Join Date
    May 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: v150 Site works except when adding user/customer - Premature end of script 500 er

    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.p...elcome%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.

  5. #5
    Join Date
    Jan 2004
    Posts
    58,284
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: v150 Site works except when adding user/customer - Premature end of script 500 er

    Quote Originally Posted by MEB2012 View Post
    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!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    58,284
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: v150 Site works except when adding user/customer - Premature end of script 500 er

    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.p...Email_Problems
    http://www.zen-cart.com/wiki/index.p...Of_Lost_Emails
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  7. #7
    Join Date
    May 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: v150 Site works except when adding user/customer - Premature end of script 500 er

    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!

  8. #8
    Join Date
    Jan 2004
    Posts
    58,284
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: v150 Site works except when adding user/customer - Premature end of script 500 er

    You're welcome.

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

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

 

 

Similar Threads

  1. v139h Suddenly getting Server error: Premature end of script headers
    By willstyle in forum General Questions
    Replies: 2
    Last Post: 6 Jan 2012, 09:38 PM
  2. Premature end of script headers - Error 500 - awardspace.com hosting
    By hansi in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 9 Oct 2006, 07:22 AM
  3. Premature end of script headers
    By spottedhaggis in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2006, 06:34 PM
  4. Premature end of script headers: php-script
    By doubletiger in forum General Questions
    Replies: 8
    Last Post: 2 Jul 2006, 09:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •