PHP-5 togheter with custom/additional themes inside the drupal/themes directory causes the following warning:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/localhost/htdocs/nyfikenvital.org.new/drupal/includes/theme.inc on line 253.

For more details, see my post here.

Comments

heine’s picture

Before we continue, can you please try reproduce the problem in 4.7 dev?

Casting the result to array() is not a proper solution as an illegal value of theme_settings (ie not an array) has been erroneously saved.

To confirm that suspicion, can you please post the results of the following query:

SELECT * FROM variables WHERE name = 'theme_settings';

And the partial result of the query:

SELECT data FROM cache WHERE cid = 'variables';

The interesting part of the second query would look like:

s:14:"theme_settings";a:17:{s:11:"toggle_logo";i:1;s:11:"toggle_name";i:1;s:13:"toggle_slogan";i:0;
s:14:"toggle_mission";i:1;s:24:"toggle_node_user_picture";i:0;s:27:"toggle_comment_user_picture";i:0;
s:13:"toggle_search";i:1;s:14:"toggle_favicon";i:1;s:21:"toggle_node_info_page";i:1;s:22:"toggle_node_info_story";i:1;
s:12:"default_logo";i:1;s:9:"logo_path";s:0:"";s:11:"logo_upload";N;s:15:"default_favicon";i:1;s:12:"favicon_path";s:0:"";
s:14:"favicon_upload";N;s:10:"form_token";s:32:"7e3cc7677f4823d91a7e032ad1130d66";}

Thanks in advance.

bdragon’s picture

Status: Active » Closed (fixed)

Closing, no feedback.