I keep getting the following notices when I look at the theme administration pages (and some other admin pages too). This is only on one of my sites (I'm running multisite).


Notice: unserialize() [function.unserialize]: Error at offset 72 of 76 bytes in E:\www\vhosts\drupal\includes\bootstrap.inc on line 390

Notice: unserialize() [function.unserialize]: Error at offset 573 of 577 bytes in E:\www\vhosts\drupal\includes\bootstrap.inc on line 390

Notice: unserialize() [function.unserialize]: Error at offset 573 of 577 bytes in E:\www\vhosts\drupal\includes\bootstrap.inc on line 390

These errors have persisted, even though I upgraded the code to 5.6.

This same site has some other problems related to the zen theme, these all came up at the same time, so I assume that they are related:
Whenever I try to enter the zen subtheme configuration page:

Fatal error: Unsupported operand types in E:\www\vhosts\drupal\sites\all\themes\zen\greengrass_blueskies\theme-settings.php on line 45

Looking in the code, the offending line:

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

What's more, when Opening the Zen configuration page:

    *  warning: array_merge() [function.array-merge]: Argument #2 is not an array in E:\www\vhosts\drupal\includes\theme.inc on line 278.
    * warning: array_merge() [function.array-merge]: Argument #2 is not an array in E:\www\vhosts\drupal\includes\theme.inc on line 278.
    * warning: array_merge() [function.array-merge]: Argument #2 is not an array in E:\www\vhosts\drupal\sites\all\themes\zen\theme-settings.php on line 38.

Does anyone know what's going on?
Thanks...

Comments

Swift Arrow’s picture

Title: Strange Notices: » Cant get to the theme page
Project: Drupal core » Zen
Version: 5.6 » 5.x-1.0
Component: base system » Code

Anybody there? Pleeeze?

johnalbin’s picture

Status: Active » Postponed (maintainer needs more info)

It sounds like your theme settings have been corrupted in the database somehow. Try hitting the "Rest to defaults" button on both the Zen settings page and the greengrass_blueskies settings page. Does that fix it?

calebgilbert’s picture

I'm having this same problem with themesettings.api module, dev version of zen for Drupal 5, and a subtheme....

calebgilbert’s picture

That is I'm getting this error, which when it occurs makes all my settings custom theme settings inactive:

    * warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/yoursphe/public_html/drupal/drupal-5.7/includes/theme.inc on line 278.
    * warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/yoursphe/public_html/drupal/drupal-5.7/includes/theme.inc on line 278.
calebgilbert’s picture

Hm. More investigation and I get the same array merge warning but with a message regarding line 24 of my sub-theme's theme-settings-init.php file.

For some reason this problem only crops up for me with use of an import script I have - which itself is obviously not supported - but, I don't understand why the only problem seems to be with the data used in this one array_merge function....guess I will just bail from the import script for now.

Swift Arrow’s picture

Ill try to reset to defaults suggested by John. Dont have my system with me right now...

johnalbin’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Please re-open if you are still experiencing this issue.