Closed (fixed)
Project:
Devel
Version:
6.x-1.21
Component:
devel
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2008 at 23:05 UTC
Updated:
24 Aug 2010 at 21:40 UTC
on devel update:
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/html/drupal/update.php on line 174.
* warning: Invalid argument supplied for foreach() in /var/www/html/drupal/update.php on line 339.
Comments
Comment #1
moshe weitzman commentedComment #2
dejamuse commentedI received the same two error messages (that were supposedly fixed in 1.3) - when upgrading from 1.2 to 1.3:
Not sure if this is ok, but I ran the update.php script a 2nd time and there were no errors. I've read you're not supposed to run the update more than once, though they don't say exactly what happens if you do - just that is creates some errors, or something.
I disabled the devel module before updating, but I did not uninstall it.
Comment #3
dejamuse commentedNever mind, just caught the new 1.4 and no problems.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
chrisfromredfinPardon me for re-opening this, if you'd rather I file new I will, but this so perfectly describes my issue. I've been applying the security update for devel today, jumping from 1.18 to 1.21 using drush. On two sites, I get these same errors (except different line number, off by one, for the second one) when I run update.php:
...and the devel update 6003 says "no queries."
Comment #6
mollyavalon commentedMe too.
Comment #7
moshe weitzman commentedadded return array() for that function in d6. thanks.
Comment #8
espirates commentedsame thing just happen to me in updating
Comment #9
mos2710 commentedIt just happened to me as well.
Comment #10
chrisfromredfinFYI the commit went into the -dev branch, so best to update to that so you (a) don't get the error but (b) still get the security fix.
Comment #11
roball commentedGot the same on updating from 1.20 to 1.21. I assume this warning is harmless and can simply be ignored.
Comment #12
TonyT commentedI get the same errors when updating from 1.20 to 1.21. The problem seems to be that there is a line missing in devel/devel.install line 183 (in function devel_update_6003). It needs a "return array();" inserted so that the return result is an array which is what is expected by the update.php line that is giving the first error.
Comment #13
moshe weitzman commentedthis bug was fixed after 6.x-1.21. it will be in 6.x-1.22
Comment #14
lyricnz commentedTo everyone who keeps reopening this - the problem was caused by the update between devel versions not returning a set of status messages - and is harmless and can be ignored.
Comment #15
_vid commentedThanks lyricnz