Advertisement
sam20e

prestashop bankwire

Feb 8th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. [PrestaShopException]
  2. Can't load Order status
  3. at line 190 in file classes/PaymentModule.php
  4.  
  5. 185. }
  6. 186.
  7. 187. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);
  8. 188. if (!Validate::isLoadedObject($order_status)) {
  9. 189. PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true);
  10. 190. throw new PrestaShopException('Can\'t load Order status');
  11. 191. }
  12. 192.
  13. 193. if (!$this->active) {
  14. 194. PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true);
  15. 195. die(Tools::displayError());
  16. PaymentModuleCore->validateOrder - [line 64 - modules/banktransfer/controllers/front/validation.php] - [9 Arguments]
  17. 59. '{banktransfer_owner}' => Configuration::get('BANK_WIRE_OWNER'),
  18. 60. '{banktransfer_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),
  19. 61. '{banktransfer_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
  20. 62. );
  21. 63.
  22. 64. $this->module->validateOrder($cart->id, Configuration::get('PS_OS_banktransfer'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
  23. 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);
  24. 66. }
  25. 67. }
  26. banktransferValidationModuleFrontController->postProcess - [line 178 - classes/controller/Controller.php]
  27. 173. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
  28. 174. $this->setMedia();
  29. 175. }
  30. 176.
  31. 177. // postProcess handles ajaxProcess
  32. 178. $this->postProcess();
  33. 179.
  34. 180. if (!empty($this->redirect_after)) {
  35. 181. $this->redirect();
  36. 182. }
  37. 183.
  38. ControllerCore->run - [line 367 - classes/Dispatcher.php]
  39. 362. if (isset($params_hook_action_dispatcher)) {
  40. 363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
  41. 364. }
  42. 365.
  43. 366. // Running controller
  44. 367. $controller->run();
  45. 368. } catch (PrestaShopException $e) {
  46. 369. $e->displayMessage();
  47. 370. }
  48. 371. }
  49. 372.
  50. DispatcherCore->dispatch - [line 28 - index.php]
  51. 23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  52. 24. * International Registered Trademark & Property of PrestaShop SA
  53. 25. */
  54. 26.
  55. 27. require(dirname(__FILE__).'/config/config.inc.php');
  56. 28. Dispatcher::getInstance()->dispatch();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement