Sean Breeden

Full Stack PHP, Python, AI/ML Developer
"I'm sorry, Dave. I'm afraid I can't do that." --HAL, 2001: A Space Odyssey

Missing styles-l.css and styles-m.css

Friday, October 15th, 2021

If your Magento 2.4.x site has suddenly stopped displaying any styles and there's no styles-l.css or styles-m.css in the source? Is it working on someone else's local but not your's? Have you recompiled Magento over and over again hoping for it to magically start working but no luck?

The problem is with PHP 7.4.20.

Specifically, the problem is with a single setting in php.ini.

Go to your php.ini and add the following line:

pcre.jit=0

Restart php-fpm, apache, nginx, or whatever you are using and redeploy your site.

Don't thank me. Thank @Pascal LE MINH on Magento StackExchange https://magento.stackexchange.com/questions/340107/missing-css-from-source-code-magento-2-4-2.

Views: 1128
| Home | Announcements | Artificial Intelligence | Commodore 64 | CraftCMS | Crypto | Games | Geek | Machine Learning | Magento | Memes | Science News | Security | 7 Days to Die | Ubuntu |