Hello there.
I'm trying to update login-security module with the current security patch (6.x-1.3). I have a drupal 6.28 site. Unfortunately I get the following errors every time I try:
warning: array_merge(): Argument #2 is not an array in ../httpdocs/update.php on line 173.
warning: Invalid argument supplied for foreach() in ..//httpdocs/update.php on line 340.
My understanding after research is that one of the modules is not returning an array, when update.php hooks it in, perhaps because it's not doing a lot and leaving an uninitialised variable hence the error. This module would appear to be login-security. Do I just need to check through login-security for an uninitialised variable in hook_update?
Comments
Comment #1
musojon74 CreditAttribution: musojon74 commentedI've moved this as a support request to drupal core. I now realise that a module (not login.security) is causing me a problem. Hopefully it's just an uninitialised array but I need to resolve it, and since core is telling me the issue I'm trying to find out if there's a way for core to point me in the right direction. What's the best way to track through and see what could be causing the error?
I first saw this issue when I tried to install the latest version of mobile-tools, along with browscap, and after a few attempts I gave up. I removed both modules. The site db was rolled back to pre the install each time.
Now it appears any running of the update.php with a tweaked module triggers this error.
Can anyone advise me of the best way forwards?
Thanks and sorry to be a pain.
Jon
Comment #2
kathyq CreditAttribution: kathyq commentedI encountered the same error when updating location module Update #6310.
warning: array_merge(): Argument #2 is not an array in /var/www/update.php on line 173.
warning: Invalid argument supplied for foreach() in /var/www/update.php on line 340.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI also encountered this error when updating the Location module:
warning: array_merge(): Argument #2 is not an array in /var/www/update.php on line 173.
warning: Invalid argument supplied for foreach() in /var/www/update.php on line 340.