Hi All! I have been facing this issue while configuring a zend project on xampp server with database please help me to resolve this issue thanks in advance…
Fatal error : Uncaught Zend_Cache_Exception: cache_dir “C:\xampp\htdocs\ept\application\cache” must be a directory in C:\xampp\htdocs\ept\library\Zend\Cache.php:209 Stack trace: #0 C:\xampp\htdocs\ept\library\Zend\Cache\Backend\File.php(177): Zend_Cache::throwException(‘cache_dir "C:\x…’) #1 C:\xampp\htdocs\ept\library\Zend\Cache\Backend\File.php(128): Zend_Cache_Backend_File->setCacheDir(‘C:\xampp\htdocs…’) #2 C:\xampp\htdocs\ept\library\Zend\Cache.php(153): Zend_Cache_Backend_File->__construct(Array) #3 C:\xampp\htdocs\ept\library\Zend\Cache.php(94): Zend_Cache::_makeBackend(‘File’, Array, false, false) #4 C:\xampp\htdocs\ept\application\Bootstrap.php(29): Zend_Cache::factory(‘Core’, ‘File’, Array, Array) #5 C:\xampp\htdocs\ept\library\Zend\Application\Bootstrap\BootstrapAbstract.php(681): Bootstrap->_initAppSetup() #6 C:\xampp\htdocs\ept\library\Zend\Application\Bootstrap\BootstrapAbstract.php(634): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘appsetup’) #7 C:\xampp\htdocs\ept\library\Zend\App in C:\xampp\htdocs\ept\library\Zend\Cache.php on line 209
Hi!
It seems that the directory C:\xampp\htdocs\ept\application\cache
does not exist.
try creating that directory and ensure that the web server has write permissions in that directory.
besides that, I don’t recognize the classes in the stack trace. it looks like Zend Framework 1. Is that a new project? Zend Framework 1 is veeery old. Also, Zend Framework has been renamed to Laminas. If you want to start a new project, you might want to look into GitHub - laminas/laminas-mvc-skeleton: Skeleton application for creating laminas-mvc based projects.
Hello and welcome to our forums!
You are using a very old and outdated version of Zend Framework. Like @rieschl said you should look at the new version and the new name “Laminas”.
A tutorial to getting started can be found in the documentation: Overview - tutorials - Laminas Docs
Zend_Application_Bootstrap_BootstrapAbstract
is version 1 of the Zend Framework.
It was the issue of cache operations that should be disable in dev area. Thanks to all
Please remember that Zend Framework version 1 is outdated and has not received security fixes for years. You should not use this any more!