Leonardo Pessoa Posted March 23, 2010 Share Posted March 23, 2010 Hey there,When I try to finish an order, after choosing the payment method and confirming the option, I get a blank "validate.php" page (except for the header and sidebar) with a 500 error (veryfied by Firebug). It happens to whatever payment method I choose. Seems link when reaches the line: if ($result AND isset($order->id)) on PaymentMethod.php, it doesn't pass the condition.First I thought it was a problem from a payment module I've installed but it's happening to all of the others. Link to comment Share on other sites More sharing options...
Leonardo Pessoa Posted March 30, 2010 Author Share Posted March 30, 2010 any help ppl? Link to comment Share on other sites More sharing options...
SpyrosT Posted March 30, 2010 Share Posted March 30, 2010 take a look herehttp://www.prestashop.com/forums/viewthread/44152/ Link to comment Share on other sites More sharing options...
Leonardo Pessoa Posted March 31, 2010 Author Share Posted March 31, 2010 Ok, I've checked my apache error log and here's what's happening when I try to user my PagSeguro paymento module: [Wed Mar 31 12:20:09 2010] [error] [client 200.98.197.76] PHP Fatal error: Call to a member function checkQuantities() on a non-object in /home/gohard/public_html/classes/Order.php on line 32, referer: http://www.gohard.com.br/modules/pagseguro/payment.php And the same for bank wire: [Wed Mar 31 12:26:10 2010] [error] [client 200.98.197.76] PHP Fatal error: Call to a member function checkQuantities() on a non-object in /home/gohard/public_html/classes/Order.php on line 32, referer: http://www.gohard.com.br/modules/bankwire/payment.php The line related on Order.php is: if (!$cart->checkQuantities()) On the block: /* Class FreeOrder to use PaymentModule (abstract class, cannot be instancied) */ class FreeOrder extends PaymentModule {} /* If some products have disappear */ if (!$cart->checkQuantities()) { $step = 0; $errors[] = Tools::displayError('An item in your cart is no longer available, you cannot proceed with your order'); } Link to comment Share on other sites More sharing options...
Leonardo Pessoa Posted April 1, 2010 Author Share Posted April 1, 2010 It was a silly mistake. I've overwritten the Order.php from the folder classes with the one at the root.Thanks, anyway 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