Jump to content
Mr.BlueGarou

Fatal error at line 964 in file classes/Tools.php PS1.7.2.x

Recommended Posts

Bonjour 

 

j'ai une fatal Error lors de la validation de la commande, quand j'utilise les méthodes de payement suivant 

 

Par virement ,  Cash on delivery , Chèque. 

 

Par contre avec le module Hipay la commande passe sans probleme 

 

J'ai tout essayé réinitialisé, désinstaller et supprimé les modules en cause et rien ne change 

 

Merci pour votre aide 

 

 

 Hello

 
I have a fatal error when validating the order, when I use the following payment methods
 
By bank transfer, Cash on delivery, Check.
 
On the other hand with the Hipay module the control passes without problem
 
I have tried everything reset, uninstall and deleted the modules involved and nothing changes
 
Thank you for your help
 

 

Configuration :

serveur : Linux #1 SMP Fri Sep 1 20:42:18 MSK 2017 x86_64

 serveur : LiteSpeed

Version de PHP : 7.0.24

Limite de mémoire : 512M

Temps maximal d'exécution : 900

Taille max. pour envoi de fichiers : 24M

 

Message debug 

 

 

[PrestaShopException]

Fatal error at line 964 in file classes/Tools.php

959. * @param bool $htmlentities By default at true for parsing error message with htmlentities
960. */
961. public static function displayError($string = 'Fatal error', $htmlentities = true, Context $context = null)
962. {
963. if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_) {
964. throw new PrestaShopException($string);
965. } else if ('Fatal error' !== $string) {
966. return $string;
967. }
968.
969. return Context::getContext()->getTranslator()->trans('Fatal error', array(), 'Admin.Notifications.Error');
  • ToolsCore::displayError - [line 236 - classes/PaymentModule.php]
    231.
    232. // Does order already exists ?
    233. if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false) {
    234. if ($secure_key !== false && $secure_key != $this->context->cart->secure_key) {
    235. PrestaShopLogger::addLog('PaymentModule::validateOrder - Secure key does not match', 3, null, 'Cart', (int)$id_cart, true);
    236. die(Tools::displayError());
    237. }
    238.
    239. // For each package, generate an order
    240. $delivery_option_list = $this->context->cart->getDeliveryOptionList();
    241. $package_list = $this->context->cart->getPackageList();
  • PaymentModuleCore->validateOrder - [line 64 - modules/ps_wirepayment/controllers/front/validation.php] - [9 Arguments]
    59.             '{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),
    60.             '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),
    61.             '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
    62.         );
    63.
    64.         $this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
    65.         Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
    66.     }
    67. }
  • Ps_WirepaymentValidationModuleFrontController->postProcess - [line 194 - classes/controller/Controller.php]
    189. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
    190. $this->setMedia();
    191. }
    192.
    193. // postProcess handles ajaxProcess
    194. $this->postProcess();
    195.
    196. if (!empty($this->redirect_after)) {
    197. $this->redirect();
    198. }
    199.
  • ControllerCore->run - [line 379 - classes/Dispatcher.php]
    374. if (isset($params_hook_action_dispatcher)) {
    375. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    376. }
    377.
    378. // Running controller
    379. $controller->run();
    380.
    381. // Execute hook dispatcher after
    382. if (isset($params_hook_action_dispatcher)) {
    383. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
    384. }
  • DispatcherCore->dispatch - [line 28 - index.php]
    23. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
    24. * International Registered Trademark & Property of PrestaShop SA
    25. */
    26.
    27. require(dirname(__FILE__).'/config/config.inc.php');
    28. Dispatcher::getInstance()->dispatch();
Edited by Mr.BlueGarou

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More