Version 5.6.1.1 Error installing themes?

Permalink
Hi Team

I have just updated one of my old sites to the latest version on concrete5 and All went fine and updated the CMS.

But the theme stopped working... Now I have removed all the themes and downloaded a couple free ones. But I seem to be getting a really strange error.

I can only get 1 theme to work all the others say they download install and activate but don't applies any theme attributes/styles etc to the pages.

Even the previews work on the installed themes. But when they activate they down show on the site! ONly Rigid Light theme will work.

I have tried/downloaded about 20 free themes from the dashboard no others will work.

My custom theme I made also works on preview but doesn't show ever!

Invalid Theme > error on theme page refresh

Any ideas?

carl101lee
View Replies: View Best Answer
carl101lee replied on at Permalink Reply
carl101lee
OK

I figured out that it was the style sheets was't being loaded.

I replaced these lines:
<style type="text/css">@import "<?php echo $this->getStyleSheet('main.css')?>";</style>
<style type="text/css">@import "<?php echo $this->getStyleSheet('typography.css')?>";</style>


with
<link href="<?php   echo $this->getThemePath()?>/main.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php   echo $this->getThemePath()?>/typography.css" rel="stylesheet" type="text/css" media="screen" />
xtrem replied on at Permalink Reply
which file is this in?
CheSimpson replied on at Permalink Reply
Its in publich_html/themes/yourtheme/elements/header.php
andrew replied on at Permalink Reply
andrew
Hmm. This function should definitely work. Others are reporting this issue with 5.6.1.1. We are investigating.
lak17a replied on at Permalink Reply
lak17a
Hallo, looks like it's some kind of bug in cache. Just updated my site, and all css went gone. css file generated in cache was empty. Deleted cache, disable it, but nothing helped. Changed as carl101lee suggested, and everything looks good now.
sk01 replied on at Permalink Reply
sk01
it is a cache problem.
the css files are written to (e.g.) files/cache/css/bootstrap/typograhpy.css
but the file itself in the cache is empty.

solution might be calling the css like described above or chmod /files/cache/css so nothing is able to write&read there.
mkly replied on at Permalink Best Answer Reply
mkly
Hello,
This will be fixed shortly. Right now you can go to
/concrete/core/models/page_theme.php around Line #269

And change it as shown here
https://github.com/mkly/concrete5/commit/f3cf4159140ec1643f64ece26ac...

You will likely need to clear your cache or delete the files/cache/css directory.

Let me know how it goes and thanks for reporting this.

Best Wishes,
Mike