bertiauxmarc Posted May 21, 2021 Share Posted May 21, 2021 Bonjour lorsque qu'un client fait une commande sur mon site quand il veux valider la dernière chose pour le panier il met une page blanche erreur fatale d’où cela peux t il venir je suis sous la version 1.7.7.1 Link to comment Share on other sites More sharing options...
bertiauxmarc Posted May 21, 2021 Author Share Posted May 21, 2021 voici le fichier validation.php <?php /* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /** * @since 1.5.0 */ class Ps_CashondeliveryValidationModuleFrontController extends ModuleFrontController { public $ssl = true; public function postProcess() { if ($this->context->cart->id_customer == 0 || $this->context->cart->id_address_delivery == 0 || $this->context->cart->id_address_invoice == 0 || !$this->module->active) { Tools::redirectLink(__PS_BASE_URI__.'order.php?step=1'); } // Check that this payment option is still available in case the customer changed his address just before the end of the checkout process $authorized = false; foreach (Module::getPaymentModules() as $module) { if ($module['name'] == 'ps_cashondelivery') { $authorized = true; break; } } if (!$authorized) { die(Tools::displayError('This payment method is not available.')); } $customer = new Customer($this->context->cart->id_customer); if (!Validate::isLoadedObject($customer)) { Tools::redirectLink(__PS_BASE_URI__.'order.php?step=1'); } $customer = new Customer((int)$this->context->cart->id_customer); $total = $this->context->cart->getOrderTotal(true, Cart::BOTH); $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder); } } Link to comment Share on other sites More sharing options...
Shonen Posted May 21, 2021 Share Posted May 21, 2021 Bonjour, Passe ta boutique en mode maintenance (elle est clairement bugué) et mets toi en mode debug pour afficher les erreurs. Le code source du fichier ne nous aidera pas sans connaître l'erreur. Link to comment Share on other sites More sharing options...
bertiauxmarc Posted May 21, 2021 Author Share Posted May 21, 2021 voici le message en mode debug [PrestaShopException] Erreur fatale at line 1167 in file classes/Tools.php 1162. ->getTranslator() 1163. ->trans('Fatal error', [], 'Admin.Notifications.Error'); 1164. } 1165. 1166. if (_PS_MODE_DEV_) { 1167. throw new PrestaShopException($errorMessage); 1168. } 1169. 1170. return $errorMessage; 1171. } 1172. ToolsCore::displayError - [line 259 - classes/PaymentModule.php] PaymentModuleCore->validateOrder - [line 57 - modules/ps_cashondelivery/controllers/front/validation.php] - [9 Arguments] Ps_CashondeliveryValidationModuleFrontController->postProcess - [line 295 - classes/controller/Controller.php] ControllerCore->run - [line 518 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
bertiauxmarc Posted May 21, 2021 Author Share Posted May 21, 2021 Link to comment Share on other sites More sharing options...
bertiauxmarc Posted May 22, 2021 Author Share Posted May 22, 2021 une personne aurais t il une idée pour mon problème ? Link to comment Share on other sites More sharing options...
bertiauxmarc Posted May 23, 2021 Author Share Posted May 23, 2021 je ne sais pas si cela interresse quelqu'un sur le forum .... le problème semble t il résolu j'ai remarquer que la Key sécurité de la table _car et la table _costumer était différente hors elle devrait être identique j'ai rectifiée la Key dans la table _cart et la commande a été validée comment cette erreur peu t elle arriver ? 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