jamess Posted December 15, 2015 Share Posted December 15, 2015 Hi there, Recently, I duplicated an active Prestashop site to a development domain. I then upgraded the site, made some cosmetic changes, and then copied back over the live site. The upgrade was from 1.5.4 to 1.6.1.3. This is a CentOS 6.x 64-bit server running PHP 5.5.30 via FastCGI. Most everything is working, except the payment step at checkout. I'm using the AuthorizeAIM module. The credit card gets processed, but I'm seeing a Server 500 Error. This is true whether AuthorizeAIM is in test or live mode. It appears to be a problem with validating the order. The Prestashop log shows the following error: PaymentModule::validateOrder - Order cannot be created The server log file shows this error: 71.100.49.98 - - [15/Dec/2015:12:45:43 -0600] "POST /modules/authorizeaim/validation.php HTTP/1.1" 500 385 I've tried a few things from Googling... Turning off invoicing. That didn't help. Checking the ps_order_state table. It's OK. Uninstalling the AuthroizeAIM module, deleting the files, and the reinstalling it. Didn't change anything. The error would appear to be occurring here in validation.php: case 1: // Payment accepted $authorizeaim->setTransactionDetail($response); $authorizeaim->validateOrder((int)$cart->id, Configuration::get('PS_OS_PAYMENT'), (float)$response[9], $payment_method, $message, NULL, NULL, false, $customer->secure_key); break ; case 4: // Hold for review $authorizeaim->validateOrder((int)$cart->id, Configuration::get('AUTHORIZE_AIM_HOLD_REVIEW_OS'), (float)$response[9], $authorizeaim->displayName, $response[3], NULL, NULL, false, $customer->secure_key); break ; I'd appreciate your ideas and feedback. Thank you, James Link to comment Share on other sites More sharing options...
tuk66 Posted December 17, 2015 Share Posted December 17, 2015 There is a fatal/syntax/class error in the /modules/authorizeaim/validation.php file. It needs step-by-step debugging to find and fix it. PM me if you are interested. Are you using the latest version of the module? Link to comment Share on other sites More sharing options...
jamess Posted December 17, 2015 Author Share Posted December 17, 2015 I eventually "guessed" the problem was database related (order could not be created). I re-imported the order tables from the development site and it's working now. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now