Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Internal Server Error

    I am not sure what exactly causing the problem I am experiencing since upgrading to ZC 1.5.1. I must also say the problem does NOT happen with a clean install just my upgraded version.

    Here is the scenario:
    Find a customer with gift certificate in their account (or email a gift certificate to a customer)
    Once the gift certificate is available, order an item that's less than the gift certificate value
    During checkout pay entirely for the whole order with gift certificate so the customer doesn't pay anything but the GC value.
    Now go to the order page and try to edit that order by clicking on "edit" this is when I get the error.

    In my case my url looks like this
    Code:
    https://www.clevershoppers.com/MYADMINFOLDER/orders.php?origin=index&page=1&oID=172400&action=edit
    but the page returns a 500 internal server error with the following:
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    Unfortunately, I do not have anything in the Zen Cart log or Apache log to help me troubleshoot what's causing this.

    My order.php is exactly the same as the one in my cleaning install that doesn't have the problem.

    I will greatly appreciate any help to trap this error or what's causing it. I am sure this probably NOT an issue related to ZC but I need help to get to the bottom of it. Perhaps something is configured wrong in our server (but then it should have my clean install as well). Probably a mod that I am not aware of? Help please!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Internal Server Error

    Quote Originally Posted by BlessIsaacola View Post
    Here is the scenario:
    Find a customer with gift certificate in their account......................
    Is that the only scenario that shows the problem?

    What happens if you try to edit any of the other orders? (those without gift certs)

    Quote Originally Posted by BlessIsaacola View Post
    In my case my url looks like this
    Code:
    https://www.clevershoppers.com/MYADMINFOLDER/orders.php?origin=index&page=1&oID=172400&action=edit
    This is typical of what it should look like. This is why it is important to know if the problem exists with all edits, or whether it is just particular specific orders.

    Quote Originally Posted by BlessIsaacola View Post
    but the page returns a 500 internal server error
    More often than not, this is a permissions problem, but your 'observation' that it relates to only particular orders tends to suggest that this probably isn't the case this time.

    Quote Originally Posted by BlessIsaacola View Post
    Unfortunately, I do not have anything in the Zen Cart log or Apache log to help me troubleshoot what's causing this.
    The 500 internal server error messages that you see are rather generic and devoid of any any information that could aid a hacker from gaining control of a system. To find the exact cause of the error you will need to contact your hosting provider. Their logs will provide the information you need.

    Quote Originally Posted by BlessIsaacola View Post
    Perhaps something is configured wrong in our server
    Other than permissions problems, this is very unlikely.

    Quote Originally Posted by BlessIsaacola View Post
    (but then it should have my clean install as well).
    Exactly.

    Quote Originally Posted by BlessIsaacola View Post
    Probably a mod that I am not aware of? Help please!
    Hhhmm, please don't take this the wrong way, but if you do have a mod that you are unaware of, then what makes you think that we can 'magically' tell you which one it is?

    Having said that, at the moment I do tend to agree with your line of thought, in that it *is* a module that you've installed that is causing the problem. It is one of the few things that will differentiate between a fresh install and an upgrade. Alas, this doesn't bring me/us any closer to determine what that mod may be.

    If your observation that it only occurs with orders that have gift certificates is true, then the 'obvious' place to start looking would be towards any mods that you have installed that somehow affect these certificate/coupon. (I can't think of any of the top of my head though).

    Enlisting the help of your host to identify the source/cause of the error from their logs will be the least stressful way of finding the cause (and solution), because without this there isn't much option than resort to trial and error (disabling/removing mods, etc) until the problem goes away.

    Simply put, I/we are currently as much in the dark as you are, in fact you even have the advantage over us, because you should know more about the what mods you've installed... we can only guess and speculate.

    Sorry I can't be of any more help at this stage.

    Cheers
    Rod

  3. #3
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Internal Server Error

    Thanks for taking the time to thorough respond to my post. I am sorry I didn't explicitly state that this problem ONLY occurs with orders that are paid for FULLY using a gift certificate. All other edits work just fine as well as accessing invoices, packing slip and such. We currently do not have any mod that affects the checkout flow. We used to have Rewards Points and Google Checkout Mod but those are no longer on our site but still have their tables and configurations intact in the database.

    The host are claiming that they are not seeing anything more. We are on a dedicated server and I have root access and I did check all the logs out there and I don't see anything myself that is useful (at the moment). Still digging.

    I know there's a tool (or code) I can use to printing what's happening but I don't remember how to implement this at the moment. I am basically hoping there's some debugging/sniffer I can activate.

    Again, thanks for your help.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Internal Server Error

    Quote Originally Posted by BlessIsaacola View Post
    Thanks for taking the time to thorough respond to my post. I am sorry I didn't explicitly state that this problem ONLY occurs with orders that are paid for FULLY using a gift certificate. All other edits work just fine as well as accessing invoices, packing slip and such.
    In your defence, you did explicitly state the problem. I just needed for you to verify that it was indeed only with the orders paying fully by a gift certificate.

    Unfortunately, your confirmation that all other edits work fine has actually deepened the mystery.

    Quote Originally Posted by BlessIsaacola View Post
    We used to have Rewards Points and Google Checkout Mod but those are no longer on our site but still have their tables and configurations intact in the database.
    Of these two, I'd be looking more towards the reward points module.... but its little more than a passing thought at this stage.

    As for the tables and configurations in the database (for these modules), they *won't* be the cause of the problem, and removing them can actually make things worse (It depends on whether you still have any php files laying around that actually references these tables).

    Quote Originally Posted by BlessIsaacola View Post
    The host are claiming that they are not seeing anything more. We are on a dedicated server and I have root access and I did check all the logs out there and I don't see anything myself that is useful (at the moment). Still digging.
    Oh, OK. I didn't realize you had a VPS. This means that you have the exact same information available to you as your host does. (Their claims are true).

    I've no idea what log files you've actually looked at, but the ones you should be looking for are often found as:
    /var/log/httpd/error_log or
    /var/log/apache(2)/error_log or something similar

    Don't forget the .php error logs either. The location is user defined and can generally be found in the php.ini file.

    Quote Originally Posted by BlessIsaacola View Post
    I know there's a tool (or code) I can use to printing what's happening but I don't remember how to implement this at the moment. I am basically hoping there's some debugging/sniffer I can activate.
    Although there are tools and methods you can use for debugging, none of them will tell you as much and as succinctly as the error logs. That is the sole point of their existence.

    Depending on your current settings and configurations you may even need to increase the 'log level' (the amount of data that gets logged) in order to get the information needed. For a 500 error though this is generally not required.

    Cheers
    Rod

  5. #5
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Internal Server Error

    By the following functions are disabled on our server: dl,show_source,system,shell_exec,passthru,popen,proc_open Do you see any problem with any of them? Thanks!

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Internal Server Error

    Quote Originally Posted by BlessIsaacola View Post
    By the following functions are disabled on our server: dl,show_source,system,shell_exec,passthru,popen,proc_open Do you see any problem with any of them? Thanks!
    Those seem to be typical settings for a server with moderate security (meaning that there may be times where one or more are too restrictive for the task at hand).

    I don't see them being relevant to this issue though.

    Still no luck with the error logs?

    Cheers
    Rod

    I'm heading off to bed. Nothing more from me until late tomorrow. Hopefully you'll have found the cause by then :)

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Internal Server Error

    Quote Originally Posted by BlessIsaacola View Post
    By the following functions are disabled on our server: dl,show_source,system,shell_exec,passthru,popen,proc_open Do you see any problem with any of them? Thanks!
    Zen Cart doesn't use any of those.
    .

    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Internal Server Error

    While it's kinda ghetto, I'd probably start by editing the orders.php file and inserting a bunch of die() statements between the various statements from lines 1-55. Basically to see where the code dies. Put in a die('it got this far'); statement, reload the page in the browser, and see if the message displays. If it does, move the die statement down a line and repeat.

    If it croaks before application_top returns, then it's probably something in the init system that's failing. If it croaks when loading and instantiating the orders class then it could be something in there. And so on.
    .

    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
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Internal Server Error

    Quote Originally Posted by DrByte View Post
    While it's kinda ghetto, I'd probably start by editing the orders.php file and inserting a bunch of die() statements between the various statements from lines 1-55. Basically to see where the code dies. Put in a die('it got this far'); statement, reload the page in the browser, and see if the message displays. If it does, move the die statement down a line and repeat.

    If it croaks before application_top returns, then it's probably something in the init system that's failing. If it croaks when loading and instantiating the orders class then it could be something in there. And so on.
    DrByte, not to sound stupid...you want me to put exactly this code:
    Code:
    die('it got this far');
    or something else? For some reason, I have a feeling 'it got this far' needs to be replaced with something.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Internal Server Error

    I meant literally exactly that.

    The die() function will halt execution and display whatever message you put in between the brackets.
    So, since *you* know what line you put the die() message on, *you* will know exactly how far the code got.
    And if you get a blank page (500 error) you will know that the code didn't finish all the way to the line where you put the die() statement, and then you can narrow things down to wherever the actual problem is occurring. And then fix it.

    You could also replace it with die('I got to ' . __LINE__ . ' in ' . __FILE__); but the line number will only be meaningful to *you* since only *you* know what changes you've made to various lines in your file. (my point here is that telling "us" what line number may not be useful since you're changing the code in order to do these tests)
    .

    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 4 123 ... LastLast

Similar Threads

  1. v139h localhost server checkout_process -> checkout_success returning internal server error
    By kamion in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 26 Jan 2013, 02:49 AM
  2. v150 Display 404 error page instead of 500 Internal Server Error
    By ShopVille in forum General Questions
    Replies: 1
    Last Post: 7 Dec 2012, 05:34 PM
  3. v139f Shopping Cart error: HTTP Error 500 (Internal Server Error)
    By Tulameen in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2012, 01:48 AM
  4. Replies: 13
    Last Post: 4 Jun 2011, 02:31 PM
  5. Replies: 14
    Last Post: 2 Jan 2011, 11:13 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR