cancel
Showing results for 
Search instead for 
Did you mean: 

Can not add product to cart in product page - We can't add this item to your shopping cart right now

Re: Can not add product to cart in product page - We can't add this item to your shopping cart right

I faced Same Issue, 

issue.png

I used 'cache_dir' => 'var/cache', but it not Work for me ,  Please tell me if any other Solution. 

Re: Can not add product to cart in product page - We can't add this item to your shopping cart right

Thanks, it worked for me. Smiley Happy

Re: Can not add product to cart in product page - We can't add this item to your shopping cart right

Thanks, it worked for me.

Re: Can not add product to cart in product page - We can't add this item to your shopping cart right

I found the solution Go to /vendor/magento/zendframework1/library/Zend/Cache/Backend and edit the file.php Search for 'cache_dir' => null, and replace it with 'cache_dir' => 'var/cache', DONE! For us it worked well.

 

That worked for me as well!

 

I am happy that it solved the problem, though it is absolutely not recommended to change core files. When updating to a newer version, this will be overridden.


Is there a "correct" way to override it permanently?