Jump to content

500 Server Error [PrestaShopException]


Kefz

Recommended Posts

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

  • 1 year later...

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