RuntimeException: The specified "/var/www/vhosts/lettalondon.com/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php.7619" file couldn't be written. Warning!file_put_contents(/var/www/vhosts/lettalondon.com/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php.7619): failed to open stream: Permission denied Class Magento\Framework\App\Http\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. in /var/www/vhosts/lettalondon.com/httpdocs/vendor/magento/framework/Code/Generator.php:135 Stack trace: #0 /var/www/vhosts/lettalondon.com/httpdocs/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 /var/www/vhosts/lettalondon.com/httpdocs/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct('Magento\\Framewo...') #4 /var/www/vhosts/lettalondon.com/httpdocs/vendor/magento/framework/ObjectManager/Definition/Runtime.php(49): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Framewo...') #5 /var/www/vhosts/lettalondon.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Framewo...') #6 /var/www/vhosts/lettalondon.com/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array) #7 /var/www/vhosts/lettalondon.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(234): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array) #8 /var/www/vhosts/lettalondon.com/httpdocs/index.php(40): Magento\Framework\App\Bootstrap->createApplication('Magento\\Framewo...') #9 {main}