Suddenly the css files stopped being loaded on my site. I found they are no longer being rendered in the <head>
. Normally they would look like:
<link rel="stylesheet" type="text/css" media="all" href=".../mage/calendar.css" />
<link rel="stylesheet" type="text/css" media="all" href=".../css/styles-m.css" />
<link rel="stylesheet" type="text/css" media="all" href=".../css/main.css" />
<link rel="stylesheet" type="text/css" media="screen and (min-width: 768px)" href=".../css/styles-l.css" />
<link rel="stylesheet" type="text/css" media="print" href=".../css/print.css" />
calendar.css is still there but the order are just not being output to the page source which of course causes the page to have no css and look like it has no design.
I tracked the file in the layout which is responsible for rendering the tags to vendor/magento/theme-frontend-blank/Magento_Theme/layout/default_head_blocks.xml
which has the lines:
<head>
<css src="css/styles-m.css"/>
<css src="css/styles-l.css" media="screen and (min-width: 768px)"/>
<css src="css/print.css" media="print"/>
<meta name="format-detection" content="telephone=no"/>
</head>
None of this is being rendered on the page even the meta tag. So I'm guessing this file is not being used at all which makes me think something is wrong with my inheritance of the theme. I'm using a custom theme which is a child of Infortis/ultimo which is a child of Infortis/base which is a child of Magento/blank. There's 3 levels of inheritance but it was working and I believe pretty standard way of creating themes.
Mostly I need help on how to debug this problem as I've exhausted all the tools I know. No useful information is in any of the logs. Is there a way to check that the theme inheritance is working and each parent is being loaded correctly?
Edit: Before you suggest it I should note I have cleared all the caches with:
bin/magento cache:clean
bin/magento cache:flush
rm -r var/view_preprocessed/*
rm -r pub/static/*
rm -r pub/cache/*
rm -r pub/page_cache/*
rm -r generated/*
and it didn't help.
-f
and it didn't help.styles-product-page.less
which shouldn't affect the main styles.