Jump to content

[solved] Multistore blank page (ContextErrorException)


AJ1234

Recommended Posts

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 by AJ1234
solved (see edit history)
Link to comment
Share on other sites

  • 1 month later...
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

  • 2 weeks later...

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

  • AJ1234 changed the title to [solved] Multistore blank page (ContextErrorException)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...