NOV 06 2018

User Notice: ‘hashed_directory_umask’ is deprecated -> please use ‘hashed_directory_perm’ instead in lib/Zend/Cache/Backend/File.php on line 143

After PHP version upgrade Magento throws the following error message in log:

User Notice: 'hashed_directory_umask' is deprecated -> please use 'hashed_directory_perm' instead in lib/Zend/Cache/Backend/File.php on line 143 

Sometimes, such notice (actually, any notice) cause 404 error response for every Magento page due to early self::helper('log') call added in SUPEE-10415.

Cause

hashed_directory_umask option is deprecated in newer PHP version and should be replaced with hashed_directory_perm.
hashed_directory_umask option is not referred directly in Magento 1.x code, though there are some known third-party extensions that makes use of that option. One of such extensions is Lesti/Fpc (full-page cache) in app/code/community/Lesti/Fpc/Model/Fpc.php file.

Solution

Check where hashed_directory_umask option is called. If Lesti/Fpc extension is installed, replace hashed_directory_umask with hashed_directory_perm in app/code/community/Lesti/Fpc/Model/Fpc.php file or use solution provided in https://github.com/GordonLesti/Lesti_Fpc/pull/51/commits/011530bf674739df3b2c07ee7233c53e8e05a757.

Posted in: Troubleshooting

User Notice: ‘hashed_directory_umask’ is deprecated -> please use ‘hashed_directory_perm’ instead in lib/Zend/Cache/Backend/File.php on line 143
1 vote, 5.00 avg. rating (92% score)