Magento : cache_dir must be a directory

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 .

Facebook Twitter Digg Reddit Stumbleupon

Related Posts:

  • No Related Posts

Posted on 14 November '11 by , under Magento.








*

Read previous post:
Thanks your for your subscription magento

Thanks your for your subscription magento : This is an alert message when any user is signing up for magento...

Close