Magento2 – Fix New Theme Saving Issue on Admin WAMP

adminmagento2permissionstheme

In continue with Magento 2: How to override Luma Theme Home Page

I'm getting error

Cannot read contents from file "D:/wamp/www/magento2/"
Warning!file_get_contents(D:/wamp/www/magento2/): failed to open
stream: No such file or directory

enter image description here

As i'm using Magento 2 CE on WAMP Windows 10, it shouldn't be file permission issue.

Best Answer

Maybe you have missing web and etc folder in your theme folder.

please add below code in your theme,

you need to copy entire web folder from /vendor/magento/theme-frontend-luma to app/design/frontend/Vendor/Theme/web folder

Also need to copy etc folder from default luma theme to your Vendor/Theme folder and check again

web folder is neccessary to add inside theme.

Now run command php bin/magento setup:upgrade

run deployment command, php bin/magento setup:static-content:deploy

Remove var folder and clear browser cache.

Set Your custom theme from

Content -> Design -> Configuration

Related Topic