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

musojon74’s picture

Project: Login Security » Drupal core
Version: 6.x-1.3 » 6.28
Component: Code » update.module

I'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

kathyq’s picture

I 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.

Anonymous’s picture

I 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.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.