Sean Breeden

Full Stack PHP, Python, AI/ML Developer
"I must not fear. Fear is the mind-killer..." --Bene Gesserit Litany Against Fear

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:


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

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