RuntimeException: Can't create directory /home/twcdev/boxit.co.nz/public_html/generated/code/Magento/Framework/Session/Config/ConfigInterface/. Class Magento\Framework\Session\Config\ConfigInterface\Proxy 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 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/Code/Generator.php:135 Stack trace: #0 /home/twcdev/boxit.co.nz/public_html/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 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Relations/Runtime.php(38): class_exists('Magento\\Framewo...') #4 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/Interception/Config/Config.php(166): Magento\Framework\ObjectManager\Relations\Runtime->has('Magento\\Framewo...') #5 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/Interception/Config/Config.php(189): Magento\Framework\Interception\Config\Config->_inheritInterception('Magento\\Framewo...') #6 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/Interception/ObjectManager/Config/Developer.php(61): Magento\Framework\Interception\Config\Config->hasPlugins('Magento\\Framewo...') #7 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(47): Magento\Framework\Interception\ObjectManager\Config\Developer->getInstanceType('Magento\\Framewo...') #8 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...') #9 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...') #10 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'sessionConfig', 'Magento\\Framewo...') #11 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Framewo...', Array, Array) #12 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Framewo...', Array, Array) #13 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...') #14 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Framewo...') #15 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Framewo...', NULL, 'response', 'Magento\\Framewo...') #16 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Framewo...', Array, Array) #17 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Framewo...', Array, Array) #18 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array) #19 /home/twcdev/boxit.co.nz/public_html/vendor/magento/framework/App/Bootstrap.php(234): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array) #20 /home/twcdev/boxit.co.nz/public_html/pub/index.php(36): Magento\Framework\App\Bootstrap->createApplication('Magento\\Framewo...') #21 {main}