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

Comments

juampynr’s picture

Status: Active » Fixed

Fixed. Please either apply the following commit or replace your twitter module by the latest dev relase (ready since tomorrow).

http://drupalcode.org/project/twitter.git/commitdiff/a12c0fc5da121726388...

Cheers

venusrising’s picture

Status: Fixed » Active

This patch did not work as after applying and installing we get error

Fatal error: Call to undefined function _twitter_use_oauth() in /home/oursite/html/sites/all/modules/twitter/twitter_signin/twitter_signin.module on line 84

Does this mean we need to upgrade to oauth we have oauth 6.x-2.02 installed as specified. We cannot run dev on production site.

Thanks for your help
PS I love the PHP hate/love letters hilarious

juampynr’s picture

The stable versions are fine, you do not need to use the development versions.

Do you have Twitter 6.x-3.0-beta7 and Oauth 6.x-2.02 installed? If so, how could I reproduce this error?

venusrising’s picture

@juampy yes we did and I had applied patch, got error on update. Had to roll back to beta 4 until solved. Hope this info helps

ezmfe’s picture

I had a similar error [warning: Invalid argument supplied for foreach()...] when upgrading from Twitter 6.x-3.0-beta6. I am running OAuth 6.x-2.02. I reverted back to Twitter 6.x-3.0-beta6 for now.

nemsis’s picture

Basically the same error as above but with a preceding error.

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

Maybe the array_merge() error will give a further clue? I hope.

juampynr’s picture

Status: Active » Postponed (maintainer needs more info)

Normally those errors come from a hook_update_N not returning an array, which I have already verified and committed on comment #1.

I would suggest you all to upgrade to Twitter beta-8, available at http://drupal.org/project/twitter.

I just tested an update.php from beta-4 to beta-8 and got no errors. If you find any problems please provide steps of how could I reproduce them.

Cheers

venusrising’s picture

Has anyone updated to Beta 8 with luck. Reluctant to do it on stable site so waiting on some feedback.

venusrising’s picture

Status: Postponed (maintainer needs more info) » Needs review

Updated to Beta 8 no longer see errors.

juampynr’s picture

Status: Needs review » Fixed

Whohooo! Glad to read that. marking it as fixed then.

If anyone is still experiencing an error on update.php, please reopen and describe steps to reproduce it.

venusrising’s picture

@juampy Thanks for the hard work!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.