2

In File.php line 150:

The contents from the

"D:/projects/directory/m2/pub/static/frontend/Smartwave/porto/en_US/css/styles-l.css" file can't be read. Warning!file_get_contents(D:/projects/directory/m2/pub/static/frontend/Smartwave/porto/en_US/css/styles-l.css): failed to open stream: No such file or directorysetup:static-content:deploy [-f|--force] [-s|--strategy [STRATEGY]] [-a|--area [AREA]] [--exclude-area [EXCLUDE-AREA]] [-t|--theme [THEME]] [--exclude-theme [EXCLUDE-THEME]] [-l|--language [LANGUAGE]] [--exclude-language [EXCLUDE-LANGUAGE]] [-j|--jobs [JOBS]] [--symlink-locale] [--content-version CONTENT-VERSION] [--refresh-content-version-only] [--no-javascript] [--no-css] [--no-less] [--no-images] [--no-fonts] [--no-html] [--no-misc] [--no-html-minify] [--] [<languages>...]
1

Experiencing same issue on Magento 2.3, all pub/static directory seems to be in order apart from a missing css directory and styles.css

1

This is the result of a compilation error in the css. Its failing and then something next in the chain is erroring because a css file is missing. This can be a pain to debug. Have you tried running static content deploy with show errors. Failing that dump php output to file.

php -d display_errors=1 bin/magento setup:static-content:deploy

php -d bin/magento setup:static-content:deploy > output.log

  • Could be an inheritance problem. You might need to put empty styles-l.css in your theme. – Dominic Xigen May 18 at 16:48
  • Thanks guys i have create empty css files which are notified as missing. – Abdul Rafay May 20 at 5:44

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.