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.

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Issues With Customers Placing Orders And Getting Error Messages

10 posts
Thu Nov 13, 14 3:16 AM CST
When a customer submits a payment from the payment form, the payment goes through to Authorize.net (and is processed correctly) but they see a blank screen that prints the message order id number invalid.

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
- Stewart
16,246 posts (admin)
Thu Nov 13, 14 6:17 AM CST
Is this something that was working fine then stop working? If so, any changes on the server you are hosting on or with authorize.net? We never found a solution for the other person.

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)
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
10 posts
Thu Nov 13, 14 4:29 PM CST
Hi Tim,

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
Attached Photos

- Stewart
16,246 posts (admin)
Fri Nov 14, 14 6:10 AM CST
Have you asked authorize.net about this? It sounds like either authorize.net is not sending any data back or for some reason the data is being blocked by the server.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
4 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 488 times
Category: Error
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close