Warnings when doing update.php


When updating modules in Drupal 6 today, I got these warnings, after running update.php:

  • warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/web/drupal/update.php on line 173.
  • warning: Invalid argument supplied for foreach() in /home/web/drupal/update.php on line 340.

What does this mean, and is there anything I can do about it?

I received no errors, and so far everything seems to be OK, but it doesn't seem like something that should be ignored. Help?

I did find this on the Drupal site: Very old, and a patch is mentioned in the top comment: https://drupal.org/node/1193184

Is this relevant?

Thanks, WCW

Chris Budy's picture

Sorry for the delayed reply. It's a little hard to tell what was causing the warnings. But they are just warnings, so it generally means things are fine it just wasn't quite what it was expecting but it didn't cause the code to blow up. But it wanted you to know.

Generally I find that these are related to older modules, or modules that may not be written using current standards. Or they are using newer standards and your version of PHP is older, etc. It's usually not a big deal, but those warnings don't give us a lot to go on to deduce any further information.