1

Hello i just created new module i tryed to install but i got this after i deleted module but still this error....

Fatal error: Uncaught RuntimeException: Can't create directory /var/www/html/generated/code/Magento/Directory/Helper/Data/. in [Magento\Directory\Helper\Data\Proxy] in /var/www/html/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /var/www/html/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Directo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Directo...') #2 [internal function]: spl_autoload_call('Magento\Directo...') #3 /var/www/html/vendor/magento/framework/ObjectManager/Relations/Runtime.php(38): class_exists('Magento\Directo...') #4 /var/www/html/vendor/magento/framework/Interception/Config/Config.php(166): Magento\Framework\ObjectManager\Relations\Runtime->has('Magento\Directo...') #5 /var/www/html/vendor/magento/framework/Interception/Config/Config.php(160): Magento\Framework\Interception\Config\Config->_inheritInterception('Magento\Directo...') #6 /var/www/html/vendor/magento/framewo in /var/www/html/vendor/magento/framework/Code/Generator.php on line 115

0

Try to run following code from your root magento dir from ssh

sudo chmod -R 777 generated/
0

Directory permission error, can not write to generated directory

chmod 770 /var/www/html/generated

Reference https://devdocs.magento.com/guides/v2.2/install-gde/prereq/file-sys-perms-over.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.