Closed (fixed)
Project:
Twitter
Version:
6.x-3.0-beta7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2011 at 09:09 UTC
Updated:
29 Nov 2011 at 02:50 UTC
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
Comment #1
juampynr commentedFixed. 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
Comment #2
venusrising commentedThis 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
Comment #3
juampynr commentedThe 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?
Comment #4
venusrising commented@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
Comment #5
ezmfe commentedI 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.
Comment #6
nemsis commentedBasically 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.
Comment #7
juampynr commentedNormally 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
Comment #8
venusrising commentedHas anyone updated to Beta 8 with luck. Reluctant to do it on stable site so waiting on some feedback.
Comment #9
venusrising commentedUpdated to Beta 8 no longer see errors.
Comment #10
juampynr commentedWhohooo! 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.
Comment #11
venusrising commented@juampy Thanks for the hard work!