PsychoZzzorD Posted March 17, 2017 Share Posted March 17, 2017 Hi everybody.As said in the title I have a little problem with my cheque and bankwire module.When I confirm my order, I get a white page or sometimes an error 500.After i tried to uninstall reinstall the two modules, I put on the dev mod and this is what the debug mod renders :"Fatal error: Uncaught Error: Class 'OrderCarrier' not found in /home/web/prestashop/Static_Swim/classes/PaymentModule.php:373 Stack trace: #0 /home/web/prestashop/Static_Swim/modules/bankwire/controllers/front/validation.php(64): PaymentModuleCore->validateOrder(941, '10', 99.48, 'Bank wire', NULL, Array, 1, false, 'c5d0f78ae2004e5...') #1 /home/web/prestashop/Static_Swim/classes/controller/Controller.php(178): BankwireValidationModuleFrontController->postProcess() #2 /home/web/prestashop/Static_Swim/classes/Dispatcher.php(367): ControllerCore->run() #3 /home/web/prestashop/Static_Swim/index.php(28): DispatcherCore->dispatch() #4 {main} thrown in /home/web/prestashop/Static_Swim/classes/PaymentModule.php on line 373"So I went to this file and looked out to see if there was something strange but I saw nothing, here's the code of PaymentModule.php : // Adding an entry in order_carrier table if (!is_null($carrier)) { $order_carrier = new OrderCarrier(); $order_carrier->id_order = (int)$order->id; $order_carrier->id_carrier = (int)$id_carrier; $order_carrier->weight = (float)$order->getTotalWeight(); $order_carrier->shipping_cost_tax_excl = (float)$order->total_shipping_tax_excl; $order_carrier->shipping_cost_tax_incl = (float)$order->total_shipping_tax_incl; $order_carrier->add(); } I searched a lot of old topics about those errors, but I found nothing :/I hope somebody will be able to enlight me on this 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