Quote Originally Posted by BlessIsaacola View Post
DrByte, can you please help me understand what this section in orders.php is doing
PHP Code:
if (isset($_POST['oID'])) {
    
$oID zen_db_prepare_input(trim($_POST['oID']));
  } elseif (isset(
$_GET['oID'])) {
    
$oID zen_db_prepare_input(trim($_GET['oID']));
  } 
In english it means: if a <form> has been submitted and contains a value for the oID field, then set $oID to the sanitized and trimmed value of that field. Else, if &oID=xx was passed via the URL, then set $oID to the sanitized and trimmed value of that URL parameter.

Quote Originally Posted by BlessIsaacola View Post
If I add
Code:
die('it got this far');
right after line 40:
Code:
if (isset($_POST['oID'])) {
Then it triggers the internal server error message.
I believe you're telling me that you stuck your die statement inside the first half of that "if" statement, and since your oID is actually a GET parameter (via the URL) and not part of a <form> post, your die statement is just being ignored, thus allowing the code to continue on to whatever is triggering the 500 error in the first place.

I'd move your die statement down below the whole block and carry on with your investigation process.