cancel
Showing results for 
Search instead for 
Did you mean: 

Uncaught Zend_Cache_Exception

Uncaught Zend_Cache_Exception

http://92.222.70.161/magento2/

 

What could be the reason?

 

Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/var/www/html/magento2/var/page_cache" is not writable in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php:209 Stack trace: #0 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/var...') #1 /var/www/html/magento2/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/var/www/html/m...') #2 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4 /var/www/html/magento2/vendor/magento/framework/App/Cache/Frontend/Factory.php(155): Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true) #5 /var/www/html/magento2/vendor/magento/framework/App/Cache/Frontend/Pool.php(67 in /var/www/html/magento2/vendor/magento/zendframework1/library/Zend/Cache.php on line 209
5 REPLIES 5

Re: Uncaught Zend_Cache_Exception

Hi @MAXIS2016

 

What is the permission set to the directory?

Please refer  Set pre-installation ownership and permissions and Appendix—Magento file system ownership and appendix (legacy)

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Uncaught Zend_Cache_Exception

Warning: require(/var/www/html/magento2/vendor/magento/module-catalog-sample-data/registration.php): failed to open stream: Permission denied in /var/www/html/magento2/vendor/composer/autoload_real.php on line 60

Fatal error: require(): Failed opening required '/var/www/html/magento2/vendor/magento/module-catalog-sample-data/registration.php' (include_path='/var/www/html/magento2/vendor/magento/zendframework1/library:/var/www/html/magento2/vendor/phpunit/php-file-iterator:/var/www/html/magento2/vendor/phpunit/phpunit:/var/www/html/magento2/vendor/symfony/yaml:.:/usr/share/php') in /var/www/html/magento2/vendor/composer/autoload_real.php on line 60

thank you @Mukesh Tiwari, after doing so you receive an error...

Re: Uncaught Zend_Cache_Exception

Hi @MAXIS2016

 

Are you installing the magento 2 with sample data?

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Uncaught Zend_Cache_Exception

Re: Uncaught Zend_Cache_Exception

Hi @MAXIS2016

Its happening because of file permissions issues.

Please refer http://devdocs.magento.com/guides/v2.0/install-gde/prereq/file-system-perms.html

 

Also read following https://github.com/mageinferno/magento2-docker-compose/issues/5

---
Problem Solved Click Accept as Solution!:Magento Community India Forum