cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: Uncaught Zend_Cache_Exception: cache_dir

SOLVED

Fatal error: Uncaught Zend_Cache_Exception: cache_dir

Hi guys, 

 

I am very new to Magento and whilst inputting my data my site has started giving this error:

 

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

 

I am an absolute beginner, so any help that you can give me to overcome this, could you please make it really dumbed down.  Thanks so much.

 

Cheers

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Fatal error: Uncaught Zend_Cache_Exception: cache_dir

@bigbob2  It is an issue with the directory permission. Below is an article on how to set permission correctly.

 

https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

 

Quick way to fix is to set 777 for all the folder but that is not recommended as you may have issues related to security later...

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

View solution in original post

2 REPLIES 2

Re: Fatal error: Uncaught Zend_Cache_Exception: cache_dir

@bigbob2  It is an issue with the directory permission. Below is an article on how to set permission correctly.

 

https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

 

Quick way to fix is to set 777 for all the folder but that is not recommended as you may have issues related to security later...

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Fatal error: Uncaught Zend_Cache_Exception: cache_dir

Hello @bigbob2 ,

to solve this problem give 777 permission to var folder as well it's all sub-folders it worked for me

Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.