Here's the error I get when I go to configure my Zen sub-theme (not Zen classic, but one I'm working on).

warning: include_once(themes/garland/theme-settings.php) [function.include-once]: failed to open stream: No such file or directory in /Users/superkev07/Sites/familydentistry/public_html/themes/zen/ssfd/theme-settings.php on line 5.
warning: include_once() [function.include]: Failed opening 'themes/garland/theme-settings.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /Users/superkev07/Sites/familydentistry/public_html/themes/zen/ssfd/theme-settings.php on line 5.

Why is that?

Comments

Alex72RM’s picture

Under zen_classic dir. the file theme-settings.php cause the cited error.

Specifically, error is on line #40:

$form += zen_settings($saved_settings, $defaults);

that address the include_once directive at the beginning of the same file:

include_once path_to_theme() .'/theme-settings.php';

I think this include directive doesn't work (at least in a "wamp" enviroment, under win xp), cause if you change it with absolute path, i.e.:

include_once 'C:\wamp\www\drupalprova3\sites\all\themes\zen\theme-settings.php';

at least the settings page load itself (but there is the cited error instead).

I hope these words can help to understand deeply the reasons for this error.

Alessandro

kevinsmith’s picture

Category: support » bug

Ah! It had to do with me using a different admin theme than I'm using for the rest of the site. Can this be fixed? It's a problem all the way to the root of Zen, so I'm going to change this to a bug report. The theme needs to take into consideration the possibility of using a different theme for administration.

Again, the bug appears when configuring the site them under a different theme for administration. It seems to reference the theme being used for administration rather than the one set for the content.

JohnAlbin’s picture

Title: Subtheme referencing garland's theme-settings.php » Fatal error on Zen Classic theme settings when using admin theme
Component: Code » Subtheme: Zen Classic
Priority: Normal » Critical
Status: Active » Fixed

If you are using an admin theme include_once path_to_theme() .'/theme-settings.php'; will attempt to load the admin theme's theme settings. But we want Zen's theme settings, so we should call
include_once './'. drupal_get_path('theme', 'zen') .'/theme-settings.php';

Fixed in 5.x-1.x-dev.

kevinsmith’s picture

thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.