Tried to install magento 1.8.1 to my hosting server. Everything look fine in the frontend, and I can login to backend and add category. However when I try to modify it(e.g: Catalog>Manage Products)in the backend its getting exception printing is disabled by default for security reasons. Did I make anything wrong during the installation? Don't know how to fix it! Thank you very much!
a:5:{i:0;s:71:"Could not determine temp directory, please specify a cache_dir manually";i:1;s:4121:"#0 /home/greenlight/www/www/ftp/magento/lib/Zend/Cache/Backend.php(197): Zend_Cache::throwException('Could not deter...')
2 Answers 2
Try this
Create a new directory called tmp
Navigate to app/code/core/Zend/Cache/Backend/
Edit File.php
Change:
protected $_options = array(
'cache_dir' => 'null',
to
protected $_options = array(
'cache_dir' => 'tmp/',
-
Only find Db and XmlRpc folder under app/code/core/Zend/DaveRyan– DaveRyan2014年03月07日 09:26:15 +00:00Commented Mar 7, 2014 at 9:26
-
2Have a look at
lib/Zend/Cache/BackendSimon– Simon2014年03月07日 09:29:37 +00:00Commented Mar 7, 2014 at 9:29 -
I encountered this issue on a working environment, after only replicate a db dump. Do you have a hint?DarkCowboy– DarkCowboy2018年03月26日 12:02:37 +00:00Commented Mar 26, 2018 at 12:02
There's a well explained tutorial in the link above. Please take a look
http://mariosam.com.br/magento/erro-cache-dir/
Translated to english: https://translate.google.com.br/translate?sl=pt&tl=en&js=y&prev=_t&hl=pt-BR&ie=UTF-8&u=http%3A%2F%2Fmariosam.com.br%2Fmagento%2Ferro-cache-dir%2F&edit-text=&act=url