Do You Want to Learn Marketing or Coding? Do You Want to Learn Marketing or Coding?

magneto cache_dir is not writable

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Here is what to do if you get the following error in your magento backend:

magneto cache_dir is not writable

Please note that this is a last resort fix, you should probably find out why your server is giving an error. Because when you get this error it means that something at root level is not writable, which can mean a bigger issues. For example, in my case our antivirus failed to load properly and made the tmp file un-writable.

First create a directory called tmp.

Navigate to app/code/core/Zend/Cache/Backend/

Edit File.php

Change:

[cc lang=’php’ ]
protected $_options = array(
‘cache_dir’ => ‘null’, [/cc]
to

[cc lang=’php’ ]protected $_options = array(
‘cache_dir’ => ‘tmp/’, [/cc]
For Magento Version 1.4.1.0

Navigate to lib/Zend/Cache/Backend/

Edit File.php

Change:

[cc lang=’php’ ]protected $_options = array(
‘cache_dir’ => null, [/cc]
to
[cc lang=’php’ ] protected $_options = array(
‘cache_dir’ => ‘tmp/’, [/cc]

 

Fix provided from this post:

http://www.magentocommerce.com/boards/viewthread/57578/

Find more about Visalia web site design services and rates.

I Really Need

Reviewing nerdy stuff is expensive.

Consider clicking on this ad & buying that item you REALLY wanted from Amazon.

It helps a ton!

Leave Your Thoughts