Selected Theme location

hoogs

Joined: 2004-12-12
Posts: 16
Posted: Thu, 2004-12-23 03:59

So I was creating a new theme and some how screwed it up. to the point that it is selected as the default theme and will not load.

I can not get back into the application to change the default back to matrix, where can I do that via the data base or is it stored in a file which theme is the default?

So this was the error:
Error (ERROR_BAD_PARAMETER, ERROR_UNKNOWN) : Theme Pitch Black must have a class named 'Pitch BlackTheme'
in modules/core/classes/GalleryTheme.class at line 162 (ShowItemView::error)
in modules/core/classes/GalleryView.class at line 215 (ShowItemView::loadTheme)
in main.php at line 312 (ShowItemView::doLoadTemplate)
in main.php at line 47
in main.php at line 40

I had the Folder name "Pitch Black" and Gallery is looking to have the Class the same name as the folder which of course you can't have a space in the class name.

So
1) In order to have better display names is there a way to put something in the theme.inc file like Displayname= ""
2) How do I now go about reseting the main album default theme back to matrix ;0-

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-23 05:21

first try main.php?g2_view=core:SiteAdmin in your browser.. if you're still logged in as admin the site admin pages may work ok even though your default theme is broken. if that doesn't work, look in g2_PluginParameterMap table for the default theme.

 
hoogs

Joined: 2004-12-12
Posts: 16
Posted: Thu, 2004-12-23 16:28
mindless wrote:
first try main.php?g2_view=core:SiteAdmin in your browser.. if you're still logged in as admin the site admin pages may work ok even though your default theme is broken. if that doesn't work, look in g2_PluginParameterMap table for the default theme.

Mindless thanks... fond the entry in the DB but for some reason I changed it back to say matrix and I get the same error as before... like it is storing the Pitch Black in a file some place..

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-23 16:41

yes, all plugin parameters are file-cached. you can remove your g2data/cache/module/core dir or use lib/tools/test/index.php to delete the entire file cache.