Jump to content
  • 0

Problem z płatnościami


Gabro

Question

Witam serdecznie,

 

posiadam sklep na prestashop 1.6.x i pojawił się pewien problem. Otóż przy realizacji zamówienia, wyskakuję błąd 500 (już po kliknięciu "potwierdzam").

 

czytałem iż, może to być związane z id w bazie danych, natomiast tutaj nie było nic zmieniane. Jeszcze do wczoraj wszystko działało normalnie.

 

W czym może być problem?

 

W logach mam taki zapis: PaymentModule::validateOrder - Order cannot be created

 

W debugerze mam taką informację:

[PrestaShopException]

Can't save Order
at line 335 in file classes/PaymentModule.php

330. 					$result = $order->add();
331. 
332. 					if (!$result)
333. 					{
334. 						PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true);
335. 						throw new PrestaShopException('Can\'t save Order');
336. 					}
337. 
338. 					// Amount paid by customer is not the right one -> Status = payment error
339. 					// We don't use the following condition to avoid the float precision issues : http://www.php.net/manual/en/language.types.float.php
340. 					// if ($order->total_paid != $order->total_paid_real)
PaymentModuleCore->validateOrder - [line 64 - modules/bankwire/controllers/front/validation.php] - [9 Arguments]
BankwireValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
ControllerCore->run - [line 374 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 28 - index.php]
Edited by Gabro (see edit history)
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Tutaj kompletny zapis:

Can't save Order
at line 335 in file classes/PaymentModule.php

330. 					$result = $order->add();
331. 
332. 					if (!$result)
333. 					{
334. 						PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true);
335. 						throw new PrestaShopException('Can\'t save Order');
336. 					}
337. 
338. 					// Amount paid by customer is not the right one -> Status = payment error
339. 					// We don't use the following condition to avoid the float precision issues : http://www.php.net/manual/en/language.types.float.php
340. 					// if ($order->total_paid != $order->total_paid_real)
PaymentModuleCore->validateOrder - [line 64 - modules/bankwire/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. }
BankwireValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
166. 			// setMedia MUST be called before postProcess
167. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
168. 				$this->setMedia();
169. 
170. 			// postProcess handles ajaxProcess
171. 			$this->postProcess();
172. 
173. 			if (!empty($this->redirect_after))
174. 				$this->redirect();
175. 
176. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
ControllerCore->run - [line 374 - classes/Dispatcher.php]
369. 			// Execute hook dispatcher
370. 			if (isset($params_hook_action_dispatcher))
371. 				Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
372. 
373. 			// Running controller
374. 			$controller->run();
375. 		}
376. 		catch (PrestaShopException $e)
377. 		{
378. 			$e->displayMessage();
379. 		}
DispatcherCore->dispatch - [line 28 - index.php]
23. *  @license    http://opensource.org/licenses/osl-3.0.php  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 Gabro (see edit history)
Link to comment
Share on other sites

  • 0

Dodatkowo wyświetla mi błąd: Notice: Undefined offset: 0 in /home/jagram/domains/jagram.pro-linuxpl.com/public_html/sklep/classes/Cart.php on line 1440

 

oraz

 

Nieznana kolumna 'round_mode' w field list

 

I kolejna masa błędów... 

 

Czy na prawdę nikt nie spotkał się z tym problemem?

Link to comment
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
×
×
  • Create New...