Good day,
Trying to get a multistore working, but have problems with it. Thinking I have missed something on the way or I just dont see what I have missed/done wrong. Hopefully there is someone here had this problem before and solved it.
We have prestashop version 8.2.1 installed on a rocky linux server with nginx as web engine.
For the site we have today two different domains, domain1.com and domain2.com, both are with SSL
Domain1.com shop is working without any problems, but our domain2.com shop is having problems.
On the site we get this error "HTTP ERROR 500", if I turn on debugging it gives me this information
Warning: Attempt to read property "id" on array in /var/www/html/prestashop/classes/controller/FrontController.php on line 1677
Warning: Attempt to read property "name" on array in /var/www/html/prestashop/classes/controller/FrontController.php on line 1677
Warning: Attempt to read property "iso_code" on array in /var/www/html/prestashop/classes/controller/FrontController.php on line 1677
Warning: Attempt to read property "iso_code_num" on array in /var/www/html/prestashop/classes/controller/FrontController.php on line 1677
Warning: Attempt to read property "sign" on array in /var/www/html/prestashop/classes/controller/FrontController.php on line 1677
Warning: Attempt to read property "iso_code" on array in /var/www/html/prestashop/classes/controller/FrontController.php on line 1810
Fatal error: Uncaught TypeError: PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision::getPrecision(): Argument #1 ($displayPrecision) must be of type int, null given, called in /var/www/html/prestashop/classes/Context.php on line 557 and defined in /var/www/html/prestashop/src/Core/Localization/CLDR/ComputingPrecision.php:41 Stack trace: #0 /var/www/html/prestashop/classes/Context.php(557): PrestaShop\PrestaShop\Core\Localization\CLDR\ComputingPrecision->getPrecision() #1 /var/www/html/prestashop/classes/Cart.php(2185): ContextCore->getComputingPrecision() #2 /var/www/html/prestashop/src/Adapter/Presenter/Cart/CartLazyArray.php(185): CartCore->getOrderTotal() #3 /var/www/html/prestashop/src/Adapter/Presenter/AbstractLazyArray.php(269): PrestaShop\PrestaShop\Adapter\Presenter\Cart\CartLazyArray->getTotals() #4 /var/www/html/prestashop/src/Adapter/Presenter/AbstractLazyArray.php(129): PrestaShop\PrestaShop\Adapter\Presenter\AbstractLazyArray->offsetGet() #5 [internal function]: PrestaShop\PrestaShop\Adapter\Presenter\AbstractLazyArray->jsonSerialize() #6 /var/www/html/prestashop/classes/Smarty/SmartyLazyRegister.php(81): json_encode() #7 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/45/de/13/45de136d4b21734066e8bb99fb3a425f2615c1ac_2.file.javascript.tpl.php(65): SmartyLazyRegister->__call() #8 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_688fa4b2d62247_46050193() #9 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #10 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #11 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #12 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/50/24/ec/5024ece59e2eb61fd6e445a4e40e38e8ba24b29b_2.file.head.tpl.php(380): Smarty_Internal_Template->_subTemplateRender() #13 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_2124114074688fa4b2d25087_18001604->callBlock() #14 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #15 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #16 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/50/24/ec/5024ece59e2eb61fd6e445a4e40e38e8ba24b29b_2.file.head.tpl.php(59): Smarty_Internal_Runtime_Inheritance->instanceBlock() #17 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_688fa4b2d28487_88240846() #18 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #19 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #20 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #21 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/44/00/e2/4400e252e509b3bb39219bfe3909b04709f53a5c_2.file.layout-both-columns.tpl.php(142): Smarty_Internal_Template->_subTemplateRender() #22 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_1746790368688fa4b2ce6f73_39678141->callBlock() #23 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock() #24 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process() #25 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/44/00/e2/4400e252e509b3bb39219bfe3909b04709f53a5c_2.file.layout-both-columns.tpl.php(46): Smarty_Internal_Runtime_Inheritance->instanceBlock() #26 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_688fa4b2cfe915_10215863() #27 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #28 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #29 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #30 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(115): Smarty_Internal_Template->_subTemplateRender() #31 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/ee/ed/59/eeed5909858cf501b3cbf7300066f19f6f476619_2.file.layout-full-width.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild() #32 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_688fa4b2ce2106_71375832() #33 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #34 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #35 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #36 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(115): Smarty_Internal_Template->_subTemplateRender() #37 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/c5/7d/52/c57d521f48c9387410c4fbec3d93de882f8a3e57_2.file.page.tpl.php(33): Smarty_Internal_Runtime_Inheritance->endChild() #38 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_688fa4b2cd3cb1_66487281() #39 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #40 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #41 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render() #42 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(115): Smarty_Internal_Template->_subTemplateRender() #43 /var/www/html/prestashop/var/cache/dev/smarty/compile/classiclayouts_layout_full_width_tpl/fb/2e/c8/fb2ec845035306bd0a8acd0c8f1f744850894226_2.file.index.tpl.php(33): Smarty_Internal_Runtime_Inheritance->endChild() #44 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_688fa4b2cc9332_49868286() #45 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #46 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #47 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #48 /var/www/html/prestashop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #49 /var/www/html/prestashop/classes/Smarty/SmartyCustom.php(112): Smarty_Internal_TemplateBase->fetch() #50 /var/www/html/prestashop/classes/controller/FrontController.php(771): SmartyCustomCore->fetch() #51 /var/www/html/prestashop/classes/controller/FrontController.php(753): FrontControllerCore->smartyOutputContent() #52 /var/www/html/prestashop/classes/controller/Controller.php(339): FrontControllerCore->display() #53 /var/www/html/prestashop/classes/Dispatcher.php(510): ControllerCore->run() #54 /var/www/html/prestashop/index.php(28): DispatcherCore->dispatch() #55 {main} thrown in /var/www/html/prestashop/src/Core/Localization/CLDR/ComputingPrecision.php on line 41
I have setup two different nginx config files for the websites, two different external IP, they are responding as Let's encrypt can read the domains and add SSL to config files. Both config files point to same prestashop folder as it says it should in documentation.
In our administration panel we have added domain1.com and domain2.com for the respective store, both for http and https.
.png.022b5452a8f28f552bc9430097a16da2.png)