1

Hiya,

I have been struggling to set up a working cron job for Magento can anybody help with the error that I keep getting...??

PHP Fatal error:  Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir must be a directory' in /var/www/vhosts/mydomain.com/httpdocs/lib/Zend/Cache.php:208
Stack trace:
#0 /var/www/vhosts/mydomain.com/httpdocs/app/code/core/Zend/Cache/Backend/File.php(146): Zend_Cache::throwException('cache_dir must ...')
#1 /var/www/vhosts/mydomain.com/httpdocs/app/code/core/Zend/Cache/Backend/File.php(121): Zend_Cache_Backend_File->setCacheDir('/var/www/vhosts...')
#2 /var/www/vhosts/mydomain.com/httpdocs/lib/Zend/Cache.php(152): Zend_Cache_Backend_File->__construct(Array)
#3 /var/www/vhosts/mydomain.com/httpdocs/lib/Zend/Cache.php(93): Zend_Cache::_makeBackend('File', Array, false, true)
#4 /var/www/vhosts/mydomain.com/httpdocs/app/code/core/Mage/Core/Model/App.php(1018): Zend_Cache::factory('Core', 'File', Array, Array, false, false, true)
#5 /var/www/vhosts/mydomain.com/httpdocs/app/code/core/Mage/Core/Model/App.php(1031): in /var/www/vhosts/mydomain.com/httpdocs/lib/Zend/Cache.php on line 208

I have replace my domain name with 'mydomain' ....
Any ideas???
many thanks
Psychosonicsid

2

Hi Sid,

From experience this is usually caused by the ownership of the cache directory not being correct (for our hosting that usually means neither your ftp user or apache owns the directory).  You will probably need us to change the ownerships if this is the case, in which case please can you email in to support.

If you're on VPS/Dedicated and you've set the var/cache directory as a RAM disk (tmpfs) then by default the ownership will be root and this will cause this error upon every reboot of your VPS.

Paul.