Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    63
    Plugin Contributions
    0

    Default HTTP 500 at end of checkout ?

    I get the HTTP 500 error message only when I click the Confirm Order button at the very end of the transaction. The order does get confirmed but the customer will see that error instead of a nice page to tell them the order was confirmed. Anybody know what to look for to fix this? I use an SSL site with Network Solutions.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: HTTP 500 at end of checkout ?

    What payment module are you using when this happens?
    What version of Zen Cart is installed?
    What addons/contributions are installed?
    .

    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.

  3. #3
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    63
    Plugin Contributions
    0

    Default Re: HTTP 500 at end of checkout ?

    I tested it in 3 payment modules, Credit Card which for me is not integrated but I use a manual entry for credit cards, money orders, and Paypal. All three give the same error. I only use the add-on for Google Analytics (which I think is possibly the problem as I just installed the new simple one). I have zencart 1.3.7 installed. How can I trace the code to find out why this is happening? As I metioned before the order does go through and the email is sent out but the customer will get the HTTP 500 error. Not a nice way to greet a customer who made an order.

    Also I use Network Solutions SSL certificate which is not the best as it doesn't recognize when I am in SSL mode and not.
    Last edited by iang000; 28 Jul 2007 at 06:22 PM.

  4. #4
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    63
    Plugin Contributions
    0

    Default Re: HTTP 500 at end of checkout ?

    Here are the error messages in the log:

    Premature end of script headers: index.php, referer: https://www.batteriesforipod.com/zen...t_confirmation
    Last edited by iang000; 28 Jul 2007 at 07:33 PM.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: HTTP 500 at end of checkout ?

    Quote Originally Posted by iang000 View Post
    I only use the add-on for Google Analytics (which I think is possibly the problem as I just installed the new simple one). I have zencart 1.3.7 installed. How can I trace the code to find out why this is happening?
    What happens if you remove the google analytics code to test ?
    Did it work without these errors before you installed that code?

    One way to find out exactly what's different between your site and a working "base" install is to compare all your code vs the master code. Here's one documented approach to such comparison:
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues



    Quote Originally Posted by iang000 View Post
    Also I use Network Solutions SSL certificate which is not the best as it doesn't recognize when I am in SSL mode and not.
    Clarification: It's not your certificate. It's the Networks Solutions webserver configuration ... their hosting services typically have this problem. There is no solution from a coding perspective. Switching hosts has been the only option for truly engaging SSL support and getting the padlock to show, etc.
    .

    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.

  6. #6
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    63
    Plugin Contributions
    0

    Default Re: HTTP 500 at end of checkout ?

    Thanks for the information. The wiki info is great but it will be very time consuming. There are so many files to compare. I just did a sample of a few and found there are differences with CR and CRLF probably due to the server being Unix and my computer is Windows. I was wondering if there is some sort of a debug available in php which allows the user to execute one statement at a time so the exact statement that is killing my script can be found. I know the order is actually completed, so I could start debugging right after that line of code. BTW where might I find the php code that is being executed as the customer presses the Confirm the order button? That would point me to a good place to start looking.

  7. #7
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    63
    Plugin Contributions
    0

    Default Re: HTTP 500 at end of checkout ?

    Here is another difference: the version I am using is: 5137 2006-12-09 22:02:24Z wilt (in application_top.php), the newest one I downloaded is: 6526 2007-06-25 22:59:38Z drbyte. Should I upgrade to this newer version?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: HTTP 500 at end of checkout ?

    You didn't answer these questions:
    Quote Originally Posted by DrByte View Post
    Quote Originally Posted by iang000 View Post
    I only use the add-on for Google Analytics (which I think is possibly the problem as I just installed the new simple one). I have zencart 1.3.7 installed. How can I trace the code to find out why this is happening?
    What happens if you remove the google analytics code to test ?
    Did it work without these errors before you installed that code?



    http://www.zen-cart.com/index.php?ma...roducts_id=378
    .

    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.

  9. #9
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    63
    Plugin Contributions
    0

    Default Re: HTTP 500 at end of checkout ?

    Forgot to post the answer. I removed the Google analytics code and it didn't help. I don't remember it ever working correctly, I used to think it was just my browser but now I know it is always happening even with Firefox.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: HTTP 500 at end of checkout ?

    I still strongly recommend the file-by-file comparison.
    You'll need to be familiar with it in order to do site upgrades anyway.
    Fixing your CR vs CRLF problems sooner than later is also a good idea. Usually making some settings changes in FTP can help with this. If you installed via fantastico, they likely left all the files in a bad state with mixed up line-endings. In that case a reinstall w/o fantastico is most often the easiest overall fix.

    Your problems are most likely related to some sort of customization or addon happening in the template. Otherwise the error would be expected to prevent the order from being saved properly.

    Which template files have you customized? or been affected by addons?
    Are you using any affiliate-tracking systems?

    Zen Cart Program Execution Flow:
    http://www.zen-cart.com/index.php?ma...roducts_id=378
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 HTTP 500 internal server error during checkout
    By valvoj in forum General Questions
    Replies: 1
    Last Post: 1 Nov 2012, 03:56 PM
  2. CHeckout Page Special Characters cause HTTP 500 Server error
    By split63 in forum General Questions
    Replies: 13
    Last Post: 24 Aug 2012, 10:03 PM
  3. v150 HTTP Error 500 is showing at the time of checkout
    By ajayrathore in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 9 Jun 2012, 12:28 AM
  4. HTTP 500 Error on checkout
    By bobanct in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 14 Oct 2010, 12:36 AM
  5. HTTP 500 errors in Paypal IPN checkout??
    By BDCreations in forum Built-in Shipping and Payment Modules
    Replies: 45
    Last Post: 5 Jan 2008, 01:25 AM

Posting Permissions

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