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

enter image description here


I have found a workaround for this issue. Please copy the folder



| improve this answer | |

I had to change the theme in Website scope not Global.

Source: https://github.com/magento/magento2/issues/5666#issuecomment-233236951

| improve this answer | |

Try to clean & flush cache, remove generated files, and regenerate static content:

$ php bin/magento cache:clean
$ php bin/magento cache:flush
$ rm -rf var/cache/* var/generation/* var/page_cache/* var/view_preprocessed/*
$ php bin/magento setup:static-content:deploy

Report back if it does not fix the error.

| improve this answer | |
  • I've got cannot read contents from file web.css and this solution work for me. Thanks – fudu Aug 28 '18 at 1:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.