upgrade to 1.4.8 causes CSS to fail on page

Permalink Browser Info Environment
I am losing the css on the page if I add the cart block to the page. I don't see any errors, the cart works fine but the theme css does not load, page is all white with no styling.

I am in concrete 5.6.1.2 with 1.4.8

I tried a clean install of concrete with the same result. Using basic themes in c5 all with same problem.

any ideas?

dustin

Type: Discussion
Status: New
dustinbrunson
View Replies:
dustinbrunson replied on at Permalink Reply
dustinbrunson
Looks like you are clearing the cache when the block is added to the page, but C5 has stored the css in a cache file and is trying to load it into the page, but is getting - error page does not exist - so no theme css can load.
dustinbrunson replied on at Permalink Reply
dustinbrunson
Looks like a C5 issue with caching css files, the quick fix in theme settings is:

in your theme header change the calls to your css like this

<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />

to using getThemePath() instead like so

<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/main.css" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/typography.css" />
jb1 replied on at Permalink Reply
jb1
Hi

Great that you explained it in detail. Clearing the cache is essential as to get the latest result of the page. So if you don't clear the cache the changes to the css will eventually act up if the cache expires.

JZ

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.