Error when loading CSS file due to MIME type "text/html"
"The stylesheet am_style.css was not loaded because its MIME type,
"text/html", is not "text/css"."
Not sure at this point why. I have other CSS files that are being loaed without issue and this one is not of type "text/html" but type "text/css" in the reference in view.php.
Has someone come across this issue and been able to resolve?
BTW, on the page, the accordion menu which this is the stylesheet for is loaded and the menu has the correct style or it at least appears to.
(because this problem arises only in my previous concrete project, when i install a new concrete project in my apache server, i don't get any error messages abous css files. So i think, the problem is not related to my apache, php, mysql configuration)
Looks like the header_required.php is adding the following:
<link rel="stylesheet" type="text/css" href="/blocks/slideshow/view.css?v=946832cdaa77e8dd6c86946b87415b60" />
rather than the path starting "/concrete/blocks/slideshow/......"
It's always good to remove errors or missing files so I think someone should look into this.
It seems to relate to Concrete supplying the wrong URL for a css file in the header. When the file is then found to be missing an html/text document is returned which the browser correctly sees as the wrong mime type.
In our case the url
was given by concrete instead of
Our quick fix was to copy the view.css file from the concrete/blocks/page_list directory and put it in blocks/page_list.
Hope this helps. Glyn.
I installed a new "concrete" then i copy-pasted all the installed blocks, themes to the new install. Then i connected the previous db to new install, in mysql server.
The problem is resolved...