Error – Could Not Determine Temp Directory, Specify Cache_dir Manually

ce-1.8.1.0error

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…')

Best Answer

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/', 
Related Topic