Hello

I am experiencing the following Problem:
Whenever I want to access the Settings of my Zen Subtheme, I get a WSOD.
Everything else is working ok, only the configurationsection of this Theme is not accessable.

I already checked the theme-settings.php for errors, but since the beginning i never touched that file, and back then it was still working.
I looked thru every .php file in my Subthemefolder, hoping i could narrow it down, but not getting there.

Logs are also not showing any errors, i am really a bit confused.

Deactivating external modules won't change anything.

If anyone knows what this could be, i really appreciate any hint.

Kind regards,
DeeKay

Comments

Dungeonkeeper’s picture

theme-settings.php looks like this (theme name is npol) :

<?php
// $Id: theme-settings.php,v 1.7 2008/09/11 09:36:50 johnalbin Exp $

// Include the definition of npol_settings() and npol_theme_get_default_settings().
include_once './' . drupal_get_path('theme', 'npol') . '/theme-settings.php';


/**
 * Implementation of THEMEHOOK_settings() function.
 *
 * @param $saved_settings
 *   An array of saved settings for this theme.
 * @return
 *   A form array.
 */
function npol_settings($saved_settings) {

  // Get the default values from the .info file.
  $defaults = npol_theme_get_default_settings('npol');

  // Merge the saved variables and their default values.
  $settings = array_merge($defaults, $saved_settings);

  /*
   * Create the form using Forms API: http://api.drupal.org/api/6
   */
  $form = array();
  /* -- Delete this line if you want to use this setting
  $form['npol_example'] = array(
    '#type'          => 'checkbox',
    '#title'         => t('Use this sample setting'),
    '#default_value' => $settings['npol_example'],
    '#description'   => t("This option doesn't do anything; it's just an example."),
  );
  // */

  // Add the base theme's settings.
  $form += zen_settings($saved_settings, $defaults);

  // Remove some of the base theme's settings.
  unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.

  // Return the form
  return $form;
}

Well fixed it somehow....
Copied the theme-settings.php from STARTERKIT about 8 times, always replaced STARTERKIT with npol, on the ninth try it finally works.

Strange

joachim’s picture

Project: Drupal core » Zen
Version: 6.14 » 6.x-2.x-dev
Component: theme system » PHP Code

Moving to right project.

akalata’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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