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

3 Answers 3


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




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

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


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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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