General developer forum

Moodle theme not showing on theme selector page

 
Picture of Kritika Sood
Moodle theme not showing on theme selector page
 

I have copied the clean theme and replaced the clean by my new theme name. Also changes the name of file in lang/en/theme_clean.php with lang/en/theme_newThemeName.php.

It get successfully installed.But on them selector page the new theme is not displaying. I have tried to clear the theme cache , purged the cache as well as enable theme designer mode. But, still theme is not displaying. After this I enabled the developer debugging mode. Now when I refreshed the theme selector page i get following two lines printed at the top of the page.

This page should be using theme newclean which cannot be initialised. Falling back to the site theme clean

  • line 451 of /lib/outputlib.php: call to debugging()
  • line 177 of /theme/index.php: call to theme_config::load()

Please help me out.

 
Average of ratings: -
Picture of Mark Sharp
Re: Moodle theme not showing on theme selector page
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

This could happen for a couple of reasons:

  1. Permissions on your theme aren't quite right - are the files readable?
  2. the config.php hasn't been uploaded (if you're using git and have config.php in your .gitignore this can happen).
 
Average of ratings: -
Picture of Kritika Sood
Re: Moodle theme not showing on theme selector page
 

My problem get solved. Actually I replaced the theme name globally with new theme name. But now I replaced all the instances of old theme name manually with new theme name and it get worked.

 
Average of ratings: -