Hi mighty community,
I have being struggling on this for 3 days and have no luck. Any thoughts from anyone?
When I switch the layout of a theme, i got the following. And I was told it is a permission issue given "Can not open"
And I have set the following permission, and I still have the same issue...
Another weird observation I noticed:
Thank you!
Luk
Hi @luklau88
There might be some permission issue.
https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html
Try the following command once:
find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento
You can use sudo as well.
If still face issue, then try following commands once n sequence to re generations.
chmod -R 0777 var/ pub/ generated/ rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/* php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush
I hope it will help you!