During an execution of database update for modules (running /update.php),
when the script finishes it shows the result page with the following warnings:

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

While possibly these result in improper module code or simply no update actions by some module these should be handled properly in update.php to avoid these warnings.

Regards,
Liran Tal.

CommentFileSizeAuthor
#1 update-warning-issue1193184.diff903 byteslirantal
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lirantal’s picture

Added patch.

OS: Ubuntu 9.04
Drupal: Drupal 6.22
Webserver: Apache2
PHP Version: 5.2.10-2ubuntu6.9

dww’s picture

DeFr’s picture

Just for future issue researchers: this isn't a duplicate of #1006938: Remove PHP warnings from legacy PHP4 XML parser for new update status release history XML (which is related to retrieving the list of new module releases available on d.o), it's a duplicate of #223288: warning: array_merge() [function.array-merge]: Argument #2 is not an array in / #274283: Warnings on running update.php ; the summary being that one of the contrib module hook_update_N didn't return an array as it was supposed to.