Thbor83 Posted August 5 Share Posted August 5 (edited) 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. Edited August 7 by Thbor83 (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 7 Share Posted August 7 Check all PS settings on the shop that hangs. Link to comment Share on other sites More sharing options...
Thbor83 Posted August 7 Author Share Posted August 7 43 minutes ago, Prestashop Addict said: Check all PS settings on the shop that hangs. All settings are already checked, they are the same as the first one. So do not see anything missing there. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 7 Share Posted August 7 Seems to be a bug https://github.com/PrestaShop/PrestaShop/issues/38735 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 7 Share Posted August 7 Are you sure you have all language and money settings on the shop that hangs? Try to import language and money in this shop context. 1 Link to comment Share on other sites More sharing options...
Thbor83 Posted August 7 Author Share Posted August 7 1 hour ago, Prestashop Addict said: Are you sure you have all language and money settings on the shop that hangs? Try to import language and money in this shop context. No, I see that it has not gotten almost anything of that, for some reason, but I will add all and see if that helps, thanks for the help so far Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 7 Share Posted August 7 Don't forget to change your title post by adding [SOLVED] and add a Thanks or Like to the good answer, this will help community. Link to comment Share on other sites More sharing options...
Thbor83 Posted August 7 Author Share Posted August 7 1 hour ago, Prestashop Addict said: Don't forget to change your title post by adding [SOLVED] and add a Thanks or Like to the good answer, this will help community. Will do, seems multistore after upgrade has more faults, so will make new topics after I have gone through all settings when needed. Thanks Link to comment Share on other sites More sharing options...
Nickz Posted August 7 Share Posted August 7 It would be easier on all fronts to have several stores instead of a multistore. For ranking, Technically and sales. 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