AJ1234 Posted November 16, 2022 Share Posted November 16, 2022 (edited) Hey. I have two multistore domains, siteone.com and sitetwo. (Strictly speaking, subdomains; a1.b.c.com and a2.b.c.com.) Getting a blank error 500 page at the second one. Debugger says: (1/1) ContextErrorException Notice: Trying to get property 'precision' of non-object in Context.php line 498 at ContextCore->getComputingPrecision()in Cart.php line 2174 at CartCore->getOrderTotal(false, 1)in CartPresenter.php line 334 at CartPresenter->present(object(Cart))in FrontController.php line 524 [...] So perhaps something about some configuration being missing that the second store expects? Any pointers? Cleared cache, disabled nonoriginal modules etc. Install is fairly fresh as well, haven't edited any files directly. A thread I found here on the forums says (and gives as a solution) that multistores ought each to belong to a different store group, but that makes no sense, does it? It would be impossible to unify stocks in such case, wouldn't it. Thanks. Edited February 2, 2023 by AJ1234 solved (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted November 22, 2022 Share Posted November 22, 2022 enable ps debug mode then recreate issue to get underlying error. Link to comment Share on other sites More sharing options...
AJ1234 Posted January 21, 2023 Author Share Posted January 21, 2023 On 11/22/2022 at 9:53 PM, PrestaHeroes.com said: enable ps debug mode then recreate issue to get underlying error. Sorry for late reply. I'm pretty sure the code I posted above is the output of the debug mode, isn't it? Link to comment Share on other sites More sharing options...
AJ1234 Posted February 2, 2023 Author Share Posted February 2, 2023 Some tracking has revealed that this was due to the multistore having no currencies (as if none had been inherited by it from the original store/store group). I manually downloaded a localization pack for the specific multistore context and the problem is gone (as in, at least the shop's template is showing). 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