Moodle 2.5: Theme broken after designer mode disabled

Moodle 2.5: Theme broken after designer mode disabled

by Justin S -
Number of replies: 10

Hi there,

I'm using a relatively fresh install of Moodle 2.5 and had the theme designer mode turned on to edit a custom theme. I've since uninstalled and deleted that custom theme and reverted the site to 'Clean'. 

However when I disable the Theme Designer mode, the page renders entirely unthemed. There are no stylesheets included in the source code whatsoever. I've tried purging all the caches and switching between other themes with no success. And as soon as I re-activate the designer mode the problem vanishes.

Screenshot of unstyled page attached.

Thanks in advance,

Justin

Attachment 2013-07-01_013238.png
Average of ratings: -
In reply to Justin S

Re: Moodle 2.5: Theme broken after designer mode disabled

by Mary Evans -

You need to Purge all cache then report back here f the problem does npt correct itself.

Cheers

Mary

In reply to Mary Evans

Re: Moodle 2.5: Theme broken after designer mode disabled

by Justin S -

Hi Mary - I've tried that a few times now, and used different browsers to make sure it wasn't a caching issue. No joy sad

Still no CSS styles in the source code either.

In reply to Justin S

Re: Moodle 2.5: Theme broken after designer mode disabled

by Mary Evans -

In that case. what was the name of the theme you installed / modified/ uninstalled / and then deleted?

Before un-installing/deleting the custom theme did you select a new 'default' theme?

In reply to Justin S

Re: Moodle 2.5: Theme broken after designer mode disabled

by Mary Evans -

Just thought, did you regenerate the CSS in bootatrapbase/style/moodle.css file at any time during your modification of your custom theme? If so have you checked to see if bootstrapbase/style/moodle.css file is empty? If it is than that's the problem.

In reply to Justin S

Re: Moodle 2.5: Theme broken after designer mode disabled

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Are you sure you ONLY deleted your theme?

It sounds like you may have deleted some of the other theme folder files such as styles.php. I believe this is what is responsible (at least in part) for concatenating and caching all the css files when theme designer mode is disabled - and caching is therefore turned on.

In reply to Richard Oelmann

Re: Moodle 2.5: Theme broken after designer mode disabled

by Justin S -

I copied clean, renaming it to clean_cc then installing it. I then changed back to clean and deleted clean_cc. 

Upon further investigation I can see that the styles for the theme are being included but no applied for some reason? Is this a javascript issue then? 

I have also tried switching to the "base" theme which has no dependencies and still encounter the same issue.

In reply to Justin S

Re: Moodle 2.5: Theme broken after designer mode disabled

by Mary Evans -

I am not sure as I cannot replicate this, so my advice is enable debugging.

To be able to select Base theme you would need Theme designer ON.  However, I thought you said you had turned Theme designer mode OFF?

I am just wondering if you have deleted something, or renamed something and forgotten about it.

In reply to Mary Evans

Re: Moodle 2.5: Theme broken after designer mode disabled

by Mark Aberdour -

I had this issue just from switching between themes in a standard Moodle 2.5 with no custom theme work at all. 

Navigate to Home / Site administration / Server / HTTP and set Use slash arguments to OFF

This fixed the problem.

Average of ratings: Useful (2)
In reply to Mark Aberdour

Re: Moodle 2.5: Theme broken after designer mode disabled

by Ray Lawrence -

We've just has this issue and finally found a minor error in a css file. I'm told that this was ignored when designer mode was on but affected the theme when the stylesheets were combined with designer mode off.

Hopefully this will save others an hour or two...