Jump to content

Recommended Posts

Buenas, hasta hace un mes el módulo de Paypal funcionaba correctamente, el problema es que ha llamado un cliente y ha comentado que había realizado un pago por Paypal el cual no nos constaba a nosotros. He hecho una prueba de compra por Paypal y me salta el siguiente error.

 

Fatal error: Uncaught exception 'PrestaShopException' with message 'Can't save Order' in /var/www/vhosts/modules/paypal/paypal.php:2033 Stack trace: #0 /var/www/vhosts/modules/paypal/paypal.php(1571): PayPal->validateOrderMegaPaypal(48272, 2, 0.01, 'PayPal AW', 'Payment accepte...', Array, 1, false, '2d8e0c58f60b03e...', Object(Shop)) #1 /var/www/vhosts/modules/paypal/express_checkout/payment.php(290): PayPal->validateOrder(48272, 2, 0.01, 'PayPal AW', 'Payment accepte...', Array, 1, false, '2d8e0c58f60b03e...', Object(Shop)) #2 /var/www/vhosts/modules/paypal/express_checkout/payment.php(306): validateOrder(Object(Customer), Object(Cart), Object(PaypalExpressCheckout)) #3 {main} thrown in /var/www/vhostsmodules/paypal/paypal.php on line 2033

 

El pago se realiza correctamente pero el pedido no queda reflejado en Paypal.

 

A ver si me podéis ayudar.

 

Gracias y saludos.

Link to comment
Share on other sites

Por otro lado no me deja crear ningún tipo de pedido manualmente desde el back office. Me salen los siguientes errores.

 

Can't save Order
at line 2033 in file modules/paypal/paypal.php

 

PayPal->validateOrderMegaPaypal - [line 1571 - modules/paypal/paypal.php] - [10 Arguments]

 

Argument [0]
48207
Argument [1]
52
Argument [2]
15.5
Argument [3]
PayPal AW
Argument [4]
Pedido manual -- Empleado V.M.E
Argument [5]
Array
(
)

Argument [6]

Argument [7]

Argument [8]
a0db6a164911106ff5e5ee74dsds1156d
Argument [9]

 

PayPal->validateOrder - [line 1399 - controllers/admin/AdminOrdersController.php] - [9 Arguments]

1393. 				$employee = new Employee((int)Context::getContext()->cookie->id_employee);
1394. 				$payment_module->validateOrder(
1395. 					(int)$cart->id, (int)$id_order_state,
1396. 					$cart->getOrderTotal(true, Cart::BOTH), $payment_module->displayName, $this->l('Manual order -- Employee:').' '.
1397. 					substr($employee->firstname, 0, 1).'. '.$employee->lastname, array(), null, false, $cart->secure_key
1398. 				);
1399. 				if ($payment_module->currentOrder)
1400. 					Tools::redirectAdmin(self::$currentIndex.'&id_order='.$payment_module->currentOrder.'&vieworder'.'&token='.$this->token);
1401. 			}
1402. 			else
1403. 				$this->errors[] = Tools::displayError('You do not have permission to add this.');

AdminOrdersControllerCore->postProcess - [line 171 - classes/controller/Controller.php]

165. 			// setMedia MUST be called before postProcess
166. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
167. 				$this->setMedia();
168. 
169. 			// postProcess handles ajaxProcess
170. 			$this->postProcess();
171. 
172. 			if (!empty($this->redirect_after))
173. 				$this->redirect();
174. 
175. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))

ControllerCore->run - [line 373 - classes/Dispatcher.php]

367. 			// Execute hook dispatcher
368. 			if (isset($params_hook_action_dispatcher))
369. 				Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
370. 
371. 			// Running controller
372. 			$controller->run();
373. 		}
374. 		catch (PrestaShopException $e)
375. 		{
376. 			$e->displayMessage();
377. 		}

DispatcherCore->dispatch - [line 54 - admin/index.php]

48. 	$_POST['controller'] = strtolower($_POST['tab']);
49. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))
50. 	$_REQUEST['controller'] = strtolower($_REQUEST['tab']);
51. 
52. // Prepare and trigger admin dispatcher
53. Dispatcher::getInstance()->dispatch();

No se si tendrá algo que ver, pero esto me ocurre desde que añadí campos al back office de pedidos siguiendo este manual:

 

http://pelechano.es/anadir-seccion-al-back-office-de-pedidos-en-prestashop-1-6/

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...