ladobonline Posted November 24, 2014 Share Posted November 24, 2014 Hola Por favor necesito ayuda porque estoy teniendo problemas con el módulo bankWire. El error que obtengo es el siguiente: [PrestaShopException] Can't load Order statusat line 174 in file classes/PaymentModule.php 168.169. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);170. if (!Validate::isLoadedObject($order_status))171. {172. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true);173. throw new PrestaShopException('Can\'t load Order status');174. }175.176. if (!$this->active)177. {178. PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true); PaymentModuleCore->validateOrder - [line 64 - modules/bankwire/controllers/front/validation.php] - [9 Arguments]58. '{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),59. '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),60. '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))61. );62.63. $this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);64. 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);65. }66. } BankwireValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]165. // setMedia MUST be called before postProcess166. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))167. $this->setMedia();168.169. // postProcess handles ajaxProcess170. $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 dispatcher368. if (isset($params_hook_action_dispatcher))369. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);370.371. // Running controller372. $controller->run();373. }374. catch (PrestaShopException $e)375. {376. $e->displayMessage();377. } DispatcherCore->dispatch - [line 28 - index.php]22. * @license http://opensource.or...ses/osl-3.0.php Open Software License (OSL 3.0)23. * International Registered Trademark & Property of PrestaShop SA24. */25.26. require(dirname(__FILE__).'/config/config.inc.php');27. Dispatcher::getInstance()->dispatch(); Sospecho que el problema pueda estar en haber eliminado el estado en el cual define el pedido una vez realizado. El caso es que no se como puedo solucionarlo. Alguien podría por favor ayudarme? Mil gracias Link to comment Share on other sites More sharing options...
galindogadea Posted November 25, 2014 Share Posted November 25, 2014 Desinstala y vuelve a instalar el modulo y es posible que el modulo te vuelva a crear el estado de pedido. O sino.... prueba revisar este tema: http://www.prestashop.com/forums/topic/208404-solved-cant-load-order-state-status-at-line-146-in-file-classespaymentmodulephp/ Link to comment Share on other sites More sharing options...
Recommended Posts