Kefz Posted January 30, 2020 Share Posted January 30, 2020 Hi! I just installed a module for swish payment. (the module is in the attachments) - ATTACHMENT DELETED BY MODERATOR as it is not known if this was free or paid one. Please never attach such things if you are not the developer yourself. Thank you. SPECS: Server information: Linux #1 SMP Sat Nov 30 02:18:52 EST 2019 x86_64Server software version: Apache PHP version: 5.6.40 Memory limit: 128M Max execution time: 30 PrestaShop version: 1.6.1.24 -------- I searched and it seems that it has something to do with the database orders. I appreciate you guys guide me through the problem 😊 [PrestaShopException] Can't load Order status at line 190 in file classes/PaymentModule.php 185. } 186. 187. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id); 188. if (!Validate::isLoadedObject($order_status)) { 189. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true); 190. throw new PrestaShopException('Can\'t load Order status'); 191. } 192. 193. if (!$this->active) { 194. PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true); 195. die(Tools::displayError()); PaymentModuleCore->validateOrder - [line 80 - modules/swish/controllers/front/validation.php] - [9 Arguments] 75. null, 76. $extra_vars, 77. (int) $currency->id, 78. false, 79. $customer->secure_key 80. ); 81. 82. // Redirect on order confirmation page 83. Tools::redirect( 84. 'index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key 85. ); SwishValidationModuleFrontController->postProcess - [line 178 - classes/controller/Controller.php] 173. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { 174. $this->setMedia(); 175. } 176. 177. // postProcess handles ajaxProcess 178. $this->postProcess(); 179. 180. if (!empty($this->redirect_after)) { 181. $this->redirect(); 182. } 183. ControllerCore->run - [line 367 - classes/Dispatcher.php] 362. if (isset($params_hook_action_dispatcher)) { 363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 364. } 365. 366. // Running controller 367. $controller->run(); 368. } catch (PrestaShopException $e) { 369. $e->displayMessage(); 370. } 371. } 372. 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 More sharing options...
selectshop.at Posted January 31, 2020 Share Posted January 31, 2020 You should contact the developer of the module, as it is a third development and not a Prestashop development Link to comment Share on other sites More sharing options...
shacker Posted January 31, 2020 Share Posted January 31, 2020 i think is related with the order status, some status is missed , maybe the swiss status Link to comment Share on other sites More sharing options...
ChOmar Posted September 8, 2021 Share Posted September 8, 2021 I have exactly the same situation. Any update about this bug ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now