Attention
If your Photo Cart is suddenly getting a 500 error or only displaying a blank page then you or your hosting company has updated the PHP (programming language) to PHP 7 which Photo Cart is not compatible with (and will not be compatible with) mainly because of the removal of the my_sql functions which are replaced with my_sqli functions.
You would need to have the PHP version downgraded to 5.6 in order for Photo Cart to work. If downgrading the PHP doesn't work then you may have to update Photo Cart to the last version of 7. Download Photo Cart 7 upgrade files. Upgrade instructions.
Photo Cart was retired in 2015. Check out Sytist.
Issues With Customers Placing Orders And Getting Error Messages
The error message is generated from the ../photocart/anetres.php file when it cannot retrieve the x_invoice_num posted variable (see line #26). The anetres-script checks to see if the invoice/order is a number and because it's empty the script "dies". I inserted a javascript alert-box to try to display the variable and saw a blank box. Then, I commented out the line and the next error message (see line 28) displays "an error as occurred..." also verifying that they $_POST didn't pull the Order/Invoice ID number.
In the ../photocart/payment/payment.authorize.net.sim file, the variable x_invoice_num is passed in the form from $x_Invoice. I changed "hidden" to "text" to verify this. However "I think somehow" anetres.php is not able to pull in and read the variable and possibly others from $_POST["x_invoice_num"].
This issue seems identical to Sarah Ritter's (http://www.picturespro.com/support-forum/photo-cart/index.php?t=16976-issues-with-customers-placing-orders-and-getting-error-messages) and if we Google the error message at least 5 other photographer websites using PhotoCart display the same error message from anetres.php.
Has this issue been resolved and I'm just not finding the solution? Can you tell me where is the file that contains the "FORM" header information so I can check where it's being posted? Is there an intermediary file that process the "Send Payment" form variables, I'd like to test and see if it is getting and sending variables appropriately. Any help is much appreciated.
-Patrick
Are you able to see any of the variables getting posted back to the anetres.php file like using the network console in Firefox (Ctrl + Shift + Q)
My Email Address: info@picturespro.com
The Network/Console shows the variables are set and being passed - at least that's what it looks like to me. However, the $_POST array is empty when I insert a var_dump($GLOBALS) or print_r($_POST) in the script (anetres.php) just before the $_POST["x_invoice_num"] is called to set $order_id.
-Patrick
My Email Address: info@picturespro.com
Loading more pages