Closed jimmyn closed 3 months ago
When I try to view an order paid by monei payments module I get an error 500. Prestashop version 1.7.6.5.
Call to protected method ToolsCore::getContextLocale() from context 'Monei' at modules/monei/monei.php:1418 at Monei->formatPrice(0, 'EUR') (modules/monei/monei.php:1336) at Monei->hookDisplayAdminOrder(array('id_order' => 5611, 'smarty' => object(Smarty_Internal_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2)) (classes/Hook.php:970) at HookCore::coreCallHook(object(Monei), 'hookdisplayAdminOrder', array('id_order' => 5611, 'smarty' => object(Smarty_Internal_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2)) (classes/Hook.php:355) at HookCore::callHookOn(object(Monei), 'displayAdminOrder', array('id_order' => 5611, 'smarty' => object(Smarty_Internal_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2)) (classes/Hook.php:907) at HookCore::exec('displayAdminOrder', array('id_order' => 5611, 'smarty' => object(Smarty_Internal_Template), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2), null) (config/smarty.config.inc.php:167) at smartyHook(array('h' => 'displayAdminOrder', 'id_order' => 5611), object(Smarty_Internal_Template)) (classes/Smarty/SmartyLazyRegister.php:83) at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayAdminOrder', 'id_order' => 5611), object(Smarty_Internal_Template))) (var/cache/dev/smarty/compile/43/f7/3f/43f73f0ebb2d12574e44a215786291e3ffa9b1a0_0.file.view.tpl.php:1320) at Block_1058646206663a3ad5926de4_05885426->callBlock(object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:248) at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1058646206663a3ad5926de4_05885426), object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:184) at Smarty_Internal_Runtime_Inheritance->process(object(Smarty_Internal_Template), object(Block_1058646206663a3ad5926de4_05885426), object(Block_1141815777663a3ad5a37884_53541030)) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:186) at Smarty_Internal_Runtime_Inheritance->process(object(Smarty_Internal_Template), object(Block_1141815777663a3ad5a37884_53541030)) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:156) at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(Smarty_Internal_Template), 'Block_1141815777663a3ad5a37884_53541030', 'override_tpl') (var/cache/dev/smarty/compile/ed/4d/51/ed4d51efedb5bd09033c018801edcb00bd9419a4_0.file.view.tpl.php:34) at content_663a3ad5a3c1f3_88349156(object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123) at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114) at Smarty_Template_Compiled->render(object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216) at Smarty_Internal_Template->render() (vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:385) at Smarty_Internal_Template->_subTemplateRender('helpers/view/view.tpl', null, null, 0, 3600, array(), 2, false, null, null) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php:116) at Smarty_Internal_Runtime_Inheritance->endChild(object(Smarty_Internal_Template), 'helpers/view/view.tpl') (var/cache/dev/smarty/compile/43/f7/3f/43f73f0ebb2d12574e44a215786291e3ffa9b1a0_0.file.view.tpl.php:40) at content_663a3ad5a237f5_48405153(object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123) at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114) at Smarty_Template_Compiled->render(object(Smarty_Internal_Template)) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216) at Smarty_Internal_Template->render(false, 0) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:232) at Smarty_Internal_TemplateBase->_execute(object(Smarty_Internal_Template), null, null, null, 0) (vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116) at Smarty_Internal_TemplateBase->fetch() (classes/helper/Helper.php:114) at HelperCore->generate() (classes/helper/HelperView.php:58) at HelperViewCore->generateView() (classes/controller/AdminController.php:2478) at AdminControllerCore->renderView() (controllers/admin/AdminOrdersController.php:1974) at AdminOrdersControllerCore->renderView() (classes/controller/AdminController.php:2124) at AdminControllerCore->initContent() (classes/controller/Controller.php:292) at ControllerCore->run() (classes/Dispatcher.php:515) at DispatcherCore->dispatch() (management/index.php:97)```
When I try to view an order paid by monei payments module I get an error 500. Prestashop version 1.7.6.5.