cancel
Showing results for 
Search instead for 
Did you mean: 

Error when I click edit theme > design configuration

SOLVED

Error when I click edit theme > design configuration

This is the error I am seeing in my var report log:

 

{"0":"Can't create directory \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Theme\/Model\/Design\/Backend\/Exceptions\/. in [Magento\\Theme\\Model\\Design\\Backend\\Exceptions\\Interceptor]","1":"#0 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Code\/Generator\/Autoloader.php(35): Magento\\Framework\\Code\\Generator->generateClass('Magento\\\\Theme\\\\M...')\n#1 [internal function]: Magento\\Framework\\Code\\Generator\\Autoloader->load('Magento\\\\Theme\\\\M...')\n#2 [internal function]: spl_autoload_call('Magento\\\\Theme\\\\M...')\n#3 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Code\/Reader\/ClassReader.php(19): ReflectionClass->__construct('Magento\\\\Theme\\\\M...')\n#4 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/ObjectManager\/Definition\/Runtime.php(44): Magento\\Framework\\Code\\Reader\\ClassReader->getConstructor('Magento\\\\Theme\\\\M...')\n#5 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(48): Magento\\Framework\\ObjectManager\\Definition\\Runtime->getParameters('Magento\\\\Theme\\\\M...')\n#6 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(56): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Theme\\\\M...', Array)\n#7 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Model\/Design\/BackendModelFactory.php(91): Magento\\Framework\\ObjectManager\\ObjectManager->create('Magento\\\\Theme\\\\M...', Array)\n#8 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Model\/Design\/BackendModelFactory.php(103): Magento\\Theme\\Model\\Design\\BackendModelFactory->getNewBackendModel('Magento\\\\Theme\\\\M...', Array)\n#9 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Model\/Design\/Config\/ValueProcessor.php(43): Magento\\Theme\\Model\\Design\\BackendModelFactory->createByPath('design\/theme\/ua...', Array)\n#10 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Model\/Design\/Config\/Storage.php(88): Magento\\Theme\\Model\\Design\\Config\\ValueProcessor->process(NULL, 'default', NULL, Array)\n#11 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Model\/DesignConfigRepository.php(77): Magento\\Theme\\Model\\Design\\Config\\Storage->load('default', NULL)\n#12 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Theme\/Model\/DesignConfigRepository\/Interceptor.php(24): Magento\\Theme\\Model\\DesignConfigRepository->getByScope('default', NULL)\n#13 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Model\/Design\/Config\/DataProvider\/MetadataLoader.php(73): Magento\\Theme\\Model\\DesignConfigRepository\\Interceptor->getByScope('default', NULL)\n#14 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Model\/Design\/Config\/DataProvider.php(85): Magento\\Theme\\Model\\Design\\Config\\DataProvider\\MetadataLoader->getData()\n#15 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php(111): Magento\\Theme\\Model\\Design\\Config\\DataProvider->__construct('design_config_f...', 'scope', 'scope', Object(Magento\\Theme\\Model\\Design\\Config\\DataProvider\\DataLoader), Object(Magento\\Theme\\Model\\Design\\Config\\DataProvider\\MetadataLoader), Object(Magento\\Theme\\Model\\ResourceModel\\Design\\Config\\CollectionFactory), Array, Array)\n#16 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/ObjectManager\/Factory\/Dynamic\/Developer.php(66): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Theme\\\\M...', Array)\n#17 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/ObjectManager\/ObjectManager.php(56): Magento\\Framework\\ObjectManager\\Factory\\Dynamic\\Developer->create('Magento\\\\Theme\\\\M...', Array)\n#18 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Element\/UiComponent\/Argument\/Interpreter\/ConfigurableObject.php(60): Magento\\Framework\\ObjectManager\\ObjectManager->create('Magento\\\\Theme\\\\M...', Array)\n#19 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Framework\/Data\/Argument\/InterpreterInterface\/Proxy.php(95): Magento\\Framework\\View\\Element\\UiComponent\\Argument\\Interpreter\\ConfigurableObject->evaluate(Array)\n#20 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Data\/Argument\/Interpreter\/Composite.php(61): Magento\\Framework\\Data\\Argument\\InterpreterInterface\\Proxy->evaluate(Array)\n#21 \/home\/watchstudio\/public_html\/vendor\/magento\/module-ui\/Config\/Data.php(164): Magento\\Framework\\Data\\Argument\\Interpreter\\Composite->evaluate(Array)\n#22 \/home\/watchstudio\/public_html\/vendor\/magento\/module-ui\/Config\/Data.php(167): Magento\\Ui\\Config\\Data->evaluateComponentArguments(Array)\n#23 \/home\/watchstudio\/public_html\/vendor\/magento\/module-ui\/Config\/Data.php(111): Magento\\Ui\\Config\\Data->evaluateComponentArguments(Array)\n#24 \/home\/watchstudio\/public_html\/vendor\/magento\/module-ui\/Config\/Data.php(136): Magento\\Ui\\Config\\Data->initData()\n#25 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout\/Reader\/UiComponent.php(100): Magento\\Ui\\Config\\Data->get('design_config_f...')\n#26 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout\/ReaderPool.php(105): Magento\\Framework\\View\\Layout\\Reader\\UiComponent->interpret(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Element), Object(Magento\\Framework\\View\\Layout\\Element))\n#27 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout\/Reader\/Container.php(89): Magento\\Framework\\View\\Layout\\ReaderPool->interpret(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Element))\n#28 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout\/ReaderPool.php(105): Magento\\Framework\\View\\Layout\\Reader\\Container->interpret(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Element), Object(Magento\\Framework\\View\\Layout\\Element))\n#29 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Page\/Config\/Reader\/Body.php(68): Magento\\Framework\\View\\Layout\\ReaderPool->interpret(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Element))\n#30 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout\/ReaderPool.php(105): Magento\\Framework\\View\\Page\\Config\\Reader\\Body->interpret(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Element), Object(Magento\\Framework\\View\\Layout\\Element))\n#31 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout.php(326): Magento\\Framework\\View\\Layout\\ReaderPool->interpret(Object(Magento\\Framework\\View\\Layout\\Reader\\Context), Object(Magento\\Framework\\View\\Layout\\Element))\n#32 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php(89): Magento\\Framework\\View\\Layout->generateElements()\n#33 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout\/Builder.php(129): Magento\\Framework\\View\\Layout\\Interceptor->generateElements()\n#34 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Page\/Builder.php(55): Magento\\Framework\\View\\Layout\\Builder->generateLayoutBlocks()\n#35 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout\/Builder.php(65): Magento\\Framework\\View\\Page\\Builder->generateLayoutBlocks()\n#36 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout.php(254): Magento\\Framework\\View\\Layout\\Builder->build()\n#37 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/View\/Layout.php(875): Magento\\Framework\\View\\Layout->build()\n#38 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Framework\/View\/Layout\/Interceptor.php(414): Magento\\Framework\\View\\Layout->getBlock('menu')\n#39 \/home\/watchstudio\/public_html\/vendor\/magento\/module-backend\/Model\/View\/Result\/Page.php(26): Magento\\Framework\\View\\Layout\\Interceptor->getBlock('menu')\n#40 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Backend\/Model\/View\/Result\/Page\/Interceptor.php(24): Magento\\Backend\\Model\\View\\Result\\Page->setActiveMenu('Magento_Theme::...')\n#41 \/home\/watchstudio\/public_html\/vendor\/magento\/module-theme\/Controller\/Adminhtml\/Design\/Config\/Edit.php(72): Magento\\Backend\\Model\\View\\Result\\Page\\Interceptor->setActiveMenu('Magento_Theme::...')\n#42 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Theme\/Controller\/Adminhtml\/Design\/Config\/Edit\/Interceptor.php(24): Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit->execute()\n#43 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/App\/Action\/Action.php(107): Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit\\Interceptor->execute()\n#44 \/home\/watchstudio\/public_html\/vendor\/magento\/module-backend\/App\/AbstractAction.php(229): Magento\\Framework\\App\\Action\\Action->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#45 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Backend\\App\\AbstractAction->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#46 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit\\Interceptor->___callParent('dispatch', Array)\n#47 \/home\/watchstudio\/public_html\/vendor\/magento\/module-backend\/App\/Action\/Plugin\/Authentication.php(143): Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#48 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\Backend\\App\\Action\\Plugin\\Authentication->aroundDispatch(Object(Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#49 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#50 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Theme\/Controller\/Adminhtml\/Design\/Config\/Edit\/Interceptor.php(39): Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit\\Interceptor->___callPlugins('dispatch', Array, NULL)\n#51 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/App\/FrontController.php(55): Magento\\Theme\\Controller\\Adminhtml\\Design\\Config\\Edit\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#52 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\App\\FrontController->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#53 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', Array)\n#54 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#55 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(26): Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', Array, Array)\n#56 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#57 \/home\/watchstudio\/public_html\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#58 \/home\/watchstudio\/public_html\/vendor\/magento\/framework\/App\/Bootstrap.php(256): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#59 \/home\/watchstudio\/public_html\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#60 {main}","url":"\/admin\/theme\/design_config\/edit\/scope\/websites\/scope_id\/1\/key\/9cfdbe42160f89c06c00fc42011ec0c2bb571474812539514663d05ec102910a\/","script_name":"\/index.php"}

3 REPLIES

Re: Error when I click edit theme > design configuration

You have issue with the permission of generated directory and error is also coming from generated directory . !!

 

You need to give write permission to few directories like , static,var,generated etc.

 

assuming Magento is installed in /var/www/html/magento2:

 

Run below command to give permission  :

cd /var/www/html/magento2 && find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \; && find var vendor pub/static pub/media app/etc -type d -exec chmod g+w {} \; && chmod u+x bin/magento

 

After that - run below commands !!

 

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento cache:clean

php bin/magento cache:flush 

 

 

Here is the reference link for the write permission - http://devdocs.magento.com/guides/v2.0/comp-mgr/trouble/cman/rc_perms.html

 

It will Works !!

 

if issue solved,Click Kudos & Accept as Solution

Re: Error when I click edit theme > design configuration

Thanks! I thought my permissions were correct because the installation went fine but after running the permissions commands everything is working as intended.

Re: Error when I click edit theme > design configuration

Glad to know that you have resolved your issue !! Happy to help and keep helping Smiley Happy

if issue solved,Click Kudos & Accept as Solution