Hi,

I got this error when updating my database per update module instruction. I have Drupal 5.7 installed.

* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/newmill/public_html/update.php on line 309.
* warning: Invalid argument supplied for foreach() in /home/newmill/public_html/update.php on line 542.

Please tell me what went wrong ?

Thanks for you help.

Hanly

Comments

theorichel’s picture

I am on Drupal 5.2 and have the same error:

* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/www/klimatosoof/update.php on line 309.
* warning: Invalid argument supplied for foreach() in /home/www/klimatosoof/update.php on line 542.

webernet’s picture

Project: Update Status » Drupal core
Version: 5.x-2.x-dev » 6.x-dev
Component: Code » update system
Category: bug » support
Status: Active » Fixed

This has nothing to do with the update(_status).module. It's an update.php issue.

It sounds like one of your contributed modules has a bug, where an update function doesn't return an array. Please file a bug report for the appropriate module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

rornelas’s picture

I am getting this error when I browse to the signups under my group.

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/noevalle/public_html/drupal/modules/signup/signup.module on line 666.

Any ideas on what I should look for? Try it at http://noevalleyleagues.com/drupal/node/8

bramface’s picture

Disable Javascript when you run Update and that will solve this one. It's a timeout error.

-Bram

wanjee’s picture

Hi,

I run upgrade with Javascript disable and I still have this issue. I have a multisite with 25 instances to update. I have to disable javascript for apache mod_secure issue (configuration is too restrictive) and I have this error on some sites update of my multi site installation. Some site shows the error, other don't.

I have made an upgrade between 5.17 and 5.18. I will compare activated modules.

Seb