First I tried to clear the cache via devel block (to rebuild theme registry), but to no avail. When i go to configure my new starter kit subtheme, (which i think i've set up right ;-) I get

warning: array_merge() [function.array-merge]: Argument #1 is not an array in (...path...)/sites/all/themes/zen/zen/template.php on line 441.

And when i try to configure Zen i get the same error. When i try Reset Defaults on either one, i get two messages of the same.

Comments

AaronCollier’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I am not able to reproduce this error. My first guess would be that the .info file is not set up properly. Did you change it to reflect the new beta version? What did you upgrade from? If you were using one of the pre-beta versions, the .info files changed significantly.

I'd check things like datestamps and the like. Other than that, I don't see what's causing it. Unless there's some other problem in the subtheme's set-up.

AaronCollier’s picture

Status: Postponed (maintainer needs more info) » Active

OK, I figured it out. I was able to reproduce the error. It happened when I had an old version of my subtheme's .info file, but a new version of the template.php file. Updating all sub files made the error go away.

Edit: It actually went away just on refreshing and I never had a problem of not being able to configure the files, though I had to reconfigure them after updating Zen.

johnalbin’s picture

Title: Argument #1 is not an array - right off the bat » warning: array_merge() [function.array-merge]: Argument #1 is not an array
Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Active » Fixed

Yep. That's the solution. Thanks, Aaron!

If you were using a pre-beta version of Zen 6.x-1.x-dev to make a sub-theme, you need to update your sub-theme. Compare your sub-theme's .info file with the STARTERKIT.info that comes with Zen 6.x-1.0-beta1 or Zen 6.x-1.0-beta2.

You will also need to:

  1. move the default theme settings values from theme-settings-init.php to your .info file.
  2. Delete your theme-settings-init.php
  3. Compare your subtheme's theme-settings.php to STARTERKIT's.
  4. Actually, you should compare every file in your sub-theme to the ones in STARTERKIT. (Your sub-theme's CSS files will probably be fine, so you don't need to compare those.)
hierodule’s picture

Status: Fixed » Active

I'm getting the exact same error, but I'm not sure if the solution presented above applies to me. I wasn't using an older version of zen (and neither I could find any file named theme-settings-init.php).

I'm (VERY) new to Drupal, and installed today the zen-6.x-1.0-beta2 theme, followed the instructions at http://drupal.org/node/226507 to create my sub-theme from STARTERKIT, and got it listed on the themes section. However, I got these error messages when I clicked on the Configure link:

warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]\sites\all\themes\Zen\Zen\theme-settings.php on line 27.

warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]\sites\all\themes\Zen\Zen\theme-settings.php on line 30.

Could it be that I messed up something while made suggested changes to the sub-theme folder?

Thanks.

Ed

hierodule’s picture

Oh, my bad, I'm such a n00b. This error deals with version 6.x-1.x-dev, and the one I downloaded was 6.x-1.0-beta2 *sigh*

I'll download 6.x-1.x-dev and try again from scratch, to see if the problem persists.

Ed.

hierodule’s picture

Status: Active » Fixed

OK, I started from scratch, using 6.x-1.x-dev this time, following once again the steps at http://drupal.org/node/226507, and the error disappeared.

No idea why it didn't work with 6.x-1.0-beta2 (since I didn't mixed up old and new versions there), but I'm glad it's OK now.

Ed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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