Saturday, 15 September 2012

php - Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir must be a directory -


A Zend MVCC current project is not capable of running my windows 7 laptop (64 bit). I am using wamp server and my existing project folder has a www folder

Every time I get an error on the index page (1 page):

Fatal Error: Unwanted Exception 'Zend_Cache_Exception' should be a directory with the message 'cache_dir' in C: \ wamp \ bin \ zend_framework \ library \ zend \ cache.php on row 20 9

In your project, I think you are certain:

  $ cache = Zend_Cache :: Factory ( 'Core', 'file', $ frontpage option, $ backend option); Probably in bootstrap  

In the $ backend option, you have a directory where the file should be cached. In my project, I have the cache directory as the application directory at the same level.
So, I have set a cache option like this:

  $ backendOptions = array ('cache_dir' = & gt; APPLICATION_PATH. '/../caches');  

Hope this will help you.


No comments:

Post a Comment