0

After upgrading from 2.3.5 to 2.4.3 in local setup, while adding to cart shows an error as shown in the below screenshot

https://nimb.ws/rhTCgf

There are some third-party modules that I tried disabling but then the site couldn't able to load. There are no logs generating in the var/logs folder

Please let me know if you have any solutions.

1 Answer 1

0

Somehow found a solution.

There was a custom module which was causing this issue specifically below code,

 // \Magento\Framework\App\Http\Context $this->httpContext
 $isLoggedIn = $this->httpContext->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH);

So used this class Magento\Customer\Model\SessionFactory instead of \Magento\Framework\App\Http\Context

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.