Closed (duplicate)
Project:
Twitter
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Feb 2010 at 20:18 UTC
Updated:
4 Nov 2010 at 10:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
ZyanKLee commentedSame for me. Subscribe.
Comment #2
voidfiles commentedSame for me.
Comment #3
anarcat commentedi have a crude hack that makes the form go through:
That retard hack actually works. I'll let someone here improve on that...
Comment #4
alanpeart commentedThanks anarcat, that worked for me (to anyone who doesn't want to go hunting for the location of that function, it's in twitter.pages.inc).
Seems odd to have this module still kicking around with this really obvious and fixable bug in it, it's been like that for months.
Comment #5
deltab commentedWorks for me.
Comment #6
walkah commentedthis is now fixed.
Comment #7
j0k3z commentedWhat version is this fixed in? Both 6.x-3.x-dev and the Beta give me this error.
Comment #8
j0k3z commentedComment #9
jcamfield commentedDisabling Messaging->Twitter, then removing overlapping accounts from the user profile worked for me
Comment #10
janwalhof commentedHello,
I installed Twitter 6.x-3.0-beta2
If I want to go to the userprofile (http://www.myurl/user/me/edit) where a twitter account is added, I got the following error:
Fatal error: Cannot use object of type TwitterUser as array in ......\sites\all\modules\messaging\messaging_twitter\messaging_twitter.module on line 58
Please give me a solution. It looks like a fantastic module. This error is a pitty.
Did I missed a solution given already? If so, sorry for that!
Please let me know.
Regards,
Jan Walhof
Comment #11
janwalhof commentedHello,
Now I installed Twitter 6.x-3.x-dev
If I go to (Messaging & Notifications - manage): http://myurl/admin/messaging/subscriptions/admin
I get also (same as #10):
Fatal error: Cannot use object of type TwitterUser as array in ......\sites\all\modules\messaging\messaging_twitter\messaging_twitter.module on line 58
Regards,
Jan Walhof
Comment #12
electroponix commentedsame, following the issue. using the hack prescribed above only breaks the twitter info in my profile.
Comment #13
crandallr commentedsubscribing
Comment #14
tryitonce commentedHaving gone through the twitter saga—see #404470: Authenticate Twitter_Actions.module via OAuth.module 2.x instead of Basic Auth—I get the same error #10 - after installing the latest version of the LinkedIn module 6.x-1.x-dev.
On another site I am running an earlier version of this module (same dev version) and don't have the problem. So, I will revert back to that and test.
Did you resolve your problem yet - any similarities?
Comment #15
tryitonce commentedIn case you are using LinkedIn and Twitter module with both using Aouth I found I needed to install LinkedIn module first - then Twitter.With this order I lost the error message.
--------------------------
Well, it didn't fix it the error message - it just came back.
I de-activated LinkedIn and Twitter Messaging and the error disappeared for now. Then I left Twitter Messaging off and turned LinkedIn back on - no problem so far - but LinkedIn looks like working with the message confirming it posted - but the posting never arrives.
And my other site does not have any of these problems ....
Comment #16
naveenpl commentedThe issue was caused by passing of account as an array where the value was an object.
Naveen P.L.
Comment #17
tryitonce commented...... the attachment has just 0 bytes?? - ;-)
Comment #18
walkah commentedI'm not getting this error and the patch is empty. any updates?
Comment #19
nplus1 commentedsame for me, an update would be great.
Comment #20
neorg commentedSame problem here
Comment #21
Dirk commentedWould be nice to know exactly what information the maintainer needs, this bug is really very annoying and should be critical.
The odd thing is that while user/UID/edit and user/UID/notifications throw up an error, user/1/edit/twitter works just fine.
The error given in my case is
Fatal error: Cannot use object of type TwitterUser as array in myurl/sites/all/modules/messaging/messaging_twitter/messaging_twitter.module on line 58
EDIT: Even more odd is that a user without a twitter account can log in an access all of his profile pages normally, but, if i as an admin try going to that users user/UID/notifications/subscriptions page i get the above error, even though no twitter account has be assigned to that user and he has no permissions regarding twitter at all.
(there is only one twitter account for the entire site, that messages get posted to by the rules module whenever new content is posted to the site. Rules integration is definitely my favourite feature of this module)
Hack from post #3 did not work here BtW.
Comment #22
BarisW commentedSubscribing, I have the same error..
Comment #23
BarisW commentedIf you are using Messaging as well, this error is probably caused by the Messaging Twitter module, not by the Twitter module. Disabling the Messaging Twitter issue solved my issue. I think the users still replying here that it has not been fixed in #6 probably see the error caused by the Messaging Twitter module.
Marking this one duplicate: #753726: Cannot use object of type TwitterUser as array
Comment #24
TallDavid commentedSubscribe
Note to self: az.org
Comment #25
nplus1 commentedso how do we fix it, i cannot edit my account anymore without running into this bug
Comment #26
thinkingcap commented#3 does not work. The issue is with the current stable release of the Messaging module (messaging-6.x-2.3) not supporting twitter-6.x-3.0-beta2 http://drupal.org/node/753726. The good news is that the messaging-6.x-4.x branch will work with twitter-6.x-3.0-beta2. The changelog for messaging-6.x-4.0-beta5 says: "Some updates for it not break with Twitter 6.x-3.x".
Note that upgrading the Messaging module to 6.x-4.x will require that you also upgrade other related modules to match the 4.x series. For me, I was using Notifications, which I needed to upgrade as well.
So I got it all working by the following process:
1. Disable the Notifications module. This will require several passes to disable dependent modules. If you skip this step and install over the existing version of Notifications, you'll get errors.
2. Download and install notifications-6.x-4.0-beta7 and autoload (required by notifications)
http://ftp.drupal.org/files/projects/notifications-6.x-4.0-beta7.tar.gz
http://ftp.drupal.org/files/projects/autoload-6.x-1.4.tar.gz
3. Download and install messaging-6.x-4.0-beta7
http://ftp.drupal.org/files/projects/messaging-6.x-4.0-beta7.tar.gz
4. Clear your caches (otherwise you might see "Class Notifications_subscriptions not found" error).
5. Re-enable all the modules you disabled in step 1.
Hope that helps. Let me know how it goes.