i'm using magento 2.0.7
@hungvt
Unfortunately, I was not able to reproduce the issue you described.
Could you please provide more information? Like versions of PHP, MySQL and web server.
Also, it can be helpful if you describe settings of your Magento instance: was it the fresh install or upgrade from the previous version?
Do you have many store views? Maybe some other settings.
According to contributor guide, tickets without response for two weeks should be closed.
Please feel free to reopen if it's needed.
I get the same error Message: We can't add this item to your shopping cart right now
Just installed the latest magento 2.1.2 CE with Sample data.... All Indexes and Cache are marked Green, okay.
Strange Thing, if you are in the category overview, you Can add the Item and place an Order.
Only if you are into the Item Detail view, you get this error message.
No matter if you are logged in as customer or not...
Cheers Tosse
An, sorry.... Requested Information....
PHP 7.0.10
MySQL 5.7.15
Apache
Datenbank-Client Version: libmysql - mysqlnd 5.0.12-dev
@tosse
Same problem here.
I can't believe MAGENTO 2 is so buggy.
Can anyone help?
@hungvt Have you any Php error logs ?
[2017-03-05 07:56:27] main.CRITICAL: Zend_Cache_Exception: Could not determine temp directory, please specify a cache_dir manually in /www/htdocs/w0159efc/vendor/magento/zendframework1/library/Zend/Cache.php:209
Stack trace:
@Tosse
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.
Thanks for the workaround @Moppelfett, but I still don't get how could this happen all of the sudden, without changing a setting or other stuff? Everything was working fine until a customer reported that he cannot add products into the cart and I tracked it down to this.
main.CRITICAL: Zend_Cache_Exception: Could not determine temp directory, please specify a cache_dir manually
Could this be related to a server update? We're also using Redis and Varnish for caching - can it be related?
@robmagento
I am not a coder but I can tell you that we had this issue right from the start after installing Magento.
Maybe someone else can answer you your question about the server update.
Most helpful comment
@Tosse
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.