1

I'm getting this error when I do:

"bin/magento setup:static-content:deploy -f"

but the website works fine, what does it mean?

In File.php line 151:
                                                                                                                                                                                                                                                                                                             
  The contents from the "/var/www/magento/pub/static/frontend/Mytheme/custom/en_US/jquery/jstree/themes/classic/style.css" file can't be read. Warning!file_get_contents(/var/www/magento/pub/static/frontend/Mytheme/custom/en_US/jquery/jstree/themes/classic/style.css): failed to open stream: No such file or directory                                                                                                                                                                                                                                                                                      

1 Answer 1

1

It can be an permission error. Give permission to var, generate and pub folder.

sudo chmod -R 0777 var/ generated/ pub 
2
  • I thought it was a permission error but I did also run this code but it's still showing the thick error #0 /var/www/magento/vendor/magento/framework/Filesystem/Directory/Write.php(144): Commented Aug 31, 2022 at 15:43
  • oh I ran it again and it worked! thank you Commented Aug 31, 2022 at 15:45

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.