RuntimeException: The specified "/var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/ResourceModel/Group/CollectionFactory.php.44917" file could not be written Warning!file_put_contents(/var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/ResourceModel/Group/CollectionFactory.php.44917): failed to open stream: Permission denied in [Magento\Store\Model\ResourceModel\Group\CollectionFactory] in /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Code/Generator.php:115 Stack trace: #0 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\\Store\\M...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\\Store\\M...') #2 [internal function]: spl_autoload_call('Magento\\Store\\M...') #3 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Code/Reader/ClassReader.php(29): ReflectionParameter->getClass() #4 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Store\\M...') #5 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Store\\M...') #6 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...') #7 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\M...') #8 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Store\\A...', NULL, 'groupRepository', 'Magento\\Store\\M...') #9 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Store\\M...', Array, Array) #10 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Store\\M...', Array, Array) #11 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...') #12 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(84): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\M...') #13 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManagerInterface\Proxy->_getSubject() #14 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore('7') #15 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope('7') #16 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(86): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', '7') #17 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(62): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #18 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get('') #19 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #20 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #21 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(292): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #22 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(191): Magento\Config\App\Config\Type\System->readData() #23 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(152): Magento\Config\App\Config\Type\System->loadDefaultScopeData('default') #24 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config.php(131): Magento\Config\App\Config\Type\System->get('default/newreli...') #25 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config->get('system', 'default/newreli...') #26 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-new-relic-reporting/Model/Config.php(91): Magento\Framework\App\Config->getValue('newrelicreporti...') #27 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-new-relic-reporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #28 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException(Object(Magento\Framework\App\Http\Interceptor), Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #29 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #30 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #31 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #32 /var/www/vhosts/alfuhod.com/httpdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #33 {main} Next ReflectionException: Class Magento\Store\Model\ResourceModel\Group\CollectionFactory does not exist in /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Code/Reader/ClassReader.php:29 Stack trace: #0 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Code/Reader/ClassReader.php(29): ReflectionParameter->getClass() #1 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Store\\M...') #2 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Store\\M...') #3 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...') #4 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\M...') #5 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Store\\A...', NULL, 'groupRepository', 'Magento\\Store\\M...') #6 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Store\\M...', Array, Array) #7 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Store\\M...', Array, Array) #8 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...') #9 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(84): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\M...') #10 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManagerInterface\Proxy->_getSubject() #11 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore('7') #12 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope('7') #13 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(86): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', '7') #14 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(62): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #15 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get('') #16 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #17 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #18 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(292): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #19 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(191): Magento\Config\App\Config\Type\System->readData() #20 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(152): Magento\Config\App\Config\Type\System->loadDefaultScopeData('default') #21 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config.php(131): Magento\Config\App\Config\Type\System->get('default/newreli...') #22 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config->get('system', 'default/newreli...') #23 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-new-relic-reporting/Model/Config.php(91): Magento\Framework\App\Config->getValue('newrelicreporti...') #24 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-new-relic-reporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #25 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException(Object(Magento\Framework\App\Http\Interceptor), Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #26 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #27 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #28 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #29 /var/www/vhosts/alfuhod.com/httpdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #30 {main} Next ReflectionException: Class Magento\Store\Model\ResourceModel\Group\CollectionFactory does not exist in /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Code/Reader/ClassReader.php:37 Stack trace: #0 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Magento\\Store\\M...') #1 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters('Magento\\Store\\M...') #2 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...') #3 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\M...') #4 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\\Store\\A...', NULL, 'groupRepository', 'Magento\\Store\\M...') #5 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\\Store\\M...', Array, Array) #6 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\\Store\\M...', Array, Array) #7 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Store\\M...') #8 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(84): Magento\Framework\ObjectManager\ObjectManager->get('Magento\\Store\\M...') #9 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119): Magento\Store\Model\StoreManagerInterface\Proxy->_getSubject() #10 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-store/Model/Resolver/Store.php(29): Magento\Store\Model\StoreManagerInterface\Proxy->getStore('7') #11 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49): Magento\Store\Model\Resolver\Store->getScope('7') #12 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(86): Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', '7') #13 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Source/RuntimeConfigSource.php(62): Magento\Config\App\Config\Source\RuntimeConfigSource->loadConfig() #14 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config/ConfigSourceAggregated.php(40): Magento\Config\App\Config\Source\RuntimeConfigSource->get('') #15 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System/Reader.php(60): Magento\Framework\App\Config\ConfigSourceAggregated->get() #16 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Config/App/Config/Type/System/Reader/Proxy.php(95): Magento\Config\App\Config\Type\System\Reader->read() #17 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(292): Magento\Config\App\Config\Type\System\Reader\Proxy->read() #18 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(191): Magento\Config\App\Config\Type\System->readData() #19 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-config/App/Config/Type/System.php(152): Magento\Config\App\Config\Type\System->loadDefaultScopeData('default') #20 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config.php(131): Magento\Config\App\Config\Type\System->get('default/newreli...') #21 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config->get('system', 'default/newreli...') #22 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-new-relic-reporting/Model/Config.php(91): Magento\Framework\App\Config->getValue('newrelicreporti...') #23 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/module-new-relic-reporting/Plugin/HttpPlugin.php(49): Magento\NewRelicReporting\Model\Config->isNewRelicEnabled() #24 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(121): Magento\NewRelicReporting\Plugin\HttpPlugin->beforeCatchException(Object(Magento\Framework\App\Http\Interceptor), Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #25 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #26 /var/www/vhosts/alfuhod.com/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(39): Magento\Framework\App\Http\Interceptor->___callPlugins('catchException', Array, Array) #27 /var/www/vhosts/alfuhod.com/httpdocs/vendor/magento/framework/App/Bootstrap.php(261): Magento\Framework\App\Http\Interceptor->catchException(Object(Magento\Framework\App\Bootstrap), Object(ReflectionException)) #28 /var/www/vhosts/alfuhod.com/httpdocs/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor)) #29 {main}