Occasionally when my client is working on the site, such as creating an event, or adding a new user, the theme configuration settings are reset. For example the suckerfish menus were disabled and other custom settings unchecked. The client doesn't have permissions to change the theme settings.

If anyone has a clue what could cause this I'd appreciate a direction.

Comments

Kisugi Ai’s picture

Status: Active » Closed (cannot reproduce)

i have no probblems i can't reproduce this issue

scooper’s picture

Version: 6.x-1.7 » 6.x-1.8
Category: support » bug
Status: Closed (cannot reproduce) » Active

I am re-opening this problem - I can now reproduce it and located the script that is resetting the theme configuration. First I updated to the latest version for D6 - 6.x-1.8

The problem now occurs every time staff adds a new user. The code that is reverting to the default settings is at the start of template.php:

if (is_null(theme_get_setting('litejazz_style'))) {
  global $theme_key;
  // Save default theme settings

My work around was to change the default settings at this location in template.php to the client's configuration. I am reporting this in case someone else has the same problem.

Kisugi Ai’s picture

hm strange i can't reproduce again may be you can try this

if (is_null(theme_get_setting('litejazz_style'))) {
  global $theme_key;
  // Save default theme settings
  $defaults = array(
    'litejazz_style' => 'blue', //<<< set this
    'litejazz_width' => 0,
    'litejazz_fixedwidth' => '850',
    'litejazz_breadcrumb' => 0,
    'litejazz_iepngfix' => 0,
    'litejazz_themelogo' => 0,
    'litejazz_fontfamily' => 0,
    'litejazz_customfont' => '',
    'litejazz_uselocalcontent' => 0,
    'litejazz_localcontentfile' => '',
    'litejazz_leftsidebarwidth' => '210',
    'litejazz_rightsidebarwidth' => '210',
    'litejazz_suckerfish' => 0,
    'litejazz_usecustomlogosize' => 0,
    'litejazz_logowidth' => '100',
    'litejazz_logoheight' => '100',
    'litejazz_banner' => 1,
    'litejazz_pickstyle' => 0,
  );

  variable_set(
    str_replace('/', '_', 'theme_'. $theme_key .'_settings'),
    array_merge(theme_get_settings($theme_key), $defaults)
  );
  // Force refresh of Drupal internals
  theme_get_setting('', TRUE);
}

or remove the whole "if (is_null(theme_get_setting('litejazz_style'))) {"

Kisugi Ai’s picture

Issue summary: View changes
Status: Active » Closed (outdated)