Magento : cache_dir must be a directory
Categorizado em Magento
cache_dir must be a directory : This problem came generally when you move your magento store to another host or server . There are mainly two solution for this problem
1 – Make sure your cache directory is writable or you can make writable to var folder of magento
but sometimes this situation does not work so here is the alternate solution. Go to this location lib/Zend/Cache/Backend/
and open file.php file you’ll see the code something like this
protected $_options = array(
‘cache_dir’ => null,
‘file_locking’ => true,
‘read_control’ => true,
‘read_control_type’ => ‘crc32′,
‘hashed_directory_level’ => 0,
‘hashed_directory_umask’ => 0700,
‘file_name_prefix’ => ‘zend_cache’,
‘cache_file_umask’ => 0600,
‘metadatas_array_max_size’ => 100
);
change this code as below
protected $_options = array(
‘cache_dir’ => ‘/var/www/html/webkul/magento/tmp’,
‘file_locking’ => true,
‘read_control’ => true,
‘read_control_type’ => ‘crc32′,
‘hashed_directory_level’ => 0,
‘hashed_directory_umask’ => 0700,
‘file_name_prefix’ => ‘zend_cache’,
‘cache_file_umask’ => 0600,
‘metadatas_array_max_size’ => 100
);
assign path of cache_dir as per your configuration .
Read more: http://vipinsahu.com/magento-cache_dir-must-be-a-directory#ixzz2Tz87etAm
mai22






- William G. Comnisky