The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 added 7 characters in body
source | link

Environment: Magento2 2.2.5 / PHP 7.0.28

Fatal error: Uncaught RuntimeException: Can't create directory /opt/lampp/htdocs/Procfit-Institucional/generated/code/Magento/Framework/App/ResourceConnection/. in [Magento\Framework\App\ResourceConnection\Proxy] in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Framewo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Framewo...') #2 [internal function]: spl_autoload_call('Magento\Framewo...') #3 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\Framewo...') #4 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\Framewo...') #5 /opt/lampp/htdocs/Procfit-Institucion in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php on line 115

Fatal error: Uncaught RuntimeException: Can't create directory /opt/lampp/htdocs/Procfit-Institucional/generated/code/Magento/Framework/App/ResourceConnection/. in [Magento\Framework\App\ResourceConnection\Proxy] in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Framewo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Framewo...') #2 [internal function]: spl_autoload_call('Magento\Framewo...') #3 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\Framewo...') #4 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\Framewo...') #5 /opt/lampp/htdocs/Procfit-Institucion in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php on line 115

I already tried: - sudo chmod 777 -R on my root project - sudo chmod -R 777 var/*

sudo chmod 777 -R on my root project 
sudo chmod -R 777  var/*

Environment: Magento2 2.2.5 / PHP 7.0.28

Fatal error: Uncaught RuntimeException: Can't create directory /opt/lampp/htdocs/Procfit-Institucional/generated/code/Magento/Framework/App/ResourceConnection/. in [Magento\Framework\App\ResourceConnection\Proxy] in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Framewo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Framewo...') #2 [internal function]: spl_autoload_call('Magento\Framewo...') #3 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\Framewo...') #4 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\Framewo...') #5 /opt/lampp/htdocs/Procfit-Institucion in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php on line 115

I already tried: - sudo chmod 777 -R on my root project - sudo chmod -R 777 var/*

Environment: Magento2 2.2.5 / PHP 7.0.28

Fatal error: Uncaught RuntimeException: Can't create directory /opt/lampp/htdocs/Procfit-Institucional/generated/code/Magento/Framework/App/ResourceConnection/. in [Magento\Framework\App\ResourceConnection\Proxy] in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Framewo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Framewo...') #2 [internal function]: spl_autoload_call('Magento\Framewo...') #3 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\Framewo...') #4 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\Framewo...') #5 /opt/lampp/htdocs/Procfit-Institucion in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php on line 115

I already tried:

sudo chmod 777 -R on my root project 
sudo chmod -R 777  var/*
1
source | link

Uncaught RuntimeException: Can't create directory

Environment: Magento2 2.2.5 / PHP 7.0.28

Fatal error: Uncaught RuntimeException: Can't create directory /opt/lampp/htdocs/Procfit-Institucional/generated/code/Magento/Framework/App/ResourceConnection/. in [Magento\Framework\App\ResourceConnection\Proxy] in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\Framewo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\Framewo...') #2 [internal function]: spl_autoload_call('Magento\Framewo...') #3 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\Framewo...') #4 /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\Framewo...') #5 /opt/lampp/htdocs/Procfit-Institucion in /opt/lampp/htdocs/Procfit-Institucional/vendor/magento/framework/Code/Generator.php on line 115

I already tried: - sudo chmod 777 -R on my root project - sudo chmod -R 777 var/*