Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | update-warning-issue1193184.diff | 903 bytes | lirantal |
Comments
Comment #1
lirantal CreditAttribution: lirantal commentedAdded patch.
OS: Ubuntu 9.04
Drupal: Drupal 6.22
Webserver: Apache2
PHP Version: 5.2.10-2ubuntu6.9
Comment #2
dww#1006938: Remove PHP warnings from legacy PHP4 XML parser for new update status release history XML
Comment #3
DeFr CreditAttribution: DeFr commentedJust 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.