Jump to content
  • 0

Problem z płatnościami


majtra

Question

Cześć,

 

 

Mam problem ze sfinalizowaniem transakcji w PS. 

Po "potwierdzeniu zamówienia" wyskakuje mi takie info (niezależnie od wybranego sposobu płatności)

 

 

Can't load Order state status
at line 147 in file classes/PaymentModule.php
 
141. if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery')
142. $context_country = $this->context->country;
143. 
144. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);
145. if (!Validate::isLoadedObject($order_status))
146. throw new PrestaShopException('Can\'t load Order state status');
147. 
148. if (!$this->active)
149. die(Tools::displayError());
150. // Does order already exists ?
151. if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false)
PaymentModuleCore->validateOrder - [line 64 - modules/bankwire/controllers/front/validation.php] - [9 Arguments]
BankwireValidationModuleFrontController->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument]
ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument]
DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument]

 

 

Tabele Ps_order_state i inne są, nie wiem gdzie może leżeć problem, więc wrzucam screeny z tabel. 

Dzięki z góry

 

post-744523-0-41442800-1390255167_thumb.png

post-744523-0-39036700-1390255413_thumb.png

post-744523-0-14805500-1390255414_thumb.png

post-744523-0-03042400-1390255540_thumb.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

co zawiera zmienna $id_order_state ?

wygląda na to, że:

1) jest pusta

2) posiada wartość która nie istnieje w bazie danych (numer id)

 

to co podejrzewam, to fakt, że moduł płatności korzysta z jakiegoś własnego statusu zamówienia, które nie jest zdefiniowane w bazie.

Link to comment
Share on other sites

  • 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();
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...