Closed (fixed)
Project:
Twitter
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
16 Jun 2011 at 17:52 UTC
Updated:
17 Nov 2011 at 16:00 UTC
Recoverable fatal error: Object of class stdClass could not be converted to string in twitter_filter_link() (line 165 of /home/s/sleddogstudios/public_html/modules/twitter/twitter.module).
Comments
Comment #1
jasonglisson commentedI'm getting an error as well.
Notice: Undefined property: stdClass::$basename in twitter_signin_admin_settings() (line 15 of
Comment #2
michaek commentedThanks for reporting these errors - it seems like @tk421jag's is a separate issue, as it's coming from a different submodule (signin), while the original issue is with the content filter.
Comment #3
jasonglisson commentedI'm pretty certain it has something to do with tokens. Twitter isn't letting me use the provided call back URL.
THis is the message that comes from twitter when I try to use it.
"Are you trying to specify a custom callback URL?
If so, put a placeholder URL in this field and set the callback dynamically during the request_token phase of OAuth"
I can create a new issue if that will help with organization.
Comment #4
michaek commentedAha - I think Twitter means something different by "token" than Drupal does. Could you open a separate issue? I'll try to give some feedback there, but I don't want to take this issue off course.
Comment #5
flightrisk commentedI installed the spamspan filter, and then checked off the checkbox for the twitter filter in my configuration -> content authoring -> text formats -> Full HTML. I then re-arranged the order of my filters so that the spamspan was in between the filters it is supposed to be. So I moved things around and started getting this error:
Recoverable fatal error: Object of class stdClass could not be converted to string in twitter_filter_link() (line 173 of C:\wamp\www\drupal2\sites\all\modules\twitter\twitter.module).
I've tried all sorts of re-arranging and can't get rid of the error. I had to uncheck all of the Twitter modules to get working again. Don't you love this Drupal error? In what way is it recoverable? I could not view the home page, just kept getting this error. Isn't this like "curable terminal cancer"?
Comment #6
emarchak commentedI've narrowed this down to the twitter_views_field_handlers.inc file, the render() function on line 43.
$value = $values->{$this->field_alias};is returning an object, not a string as expected.Disabling the hashtag and username converters in your text formats at admin/config/content/formats should bypass the error for now.
Comment #7
juampynr commentedI could not reproduce this issue. Is it still failing? Could you provide me with steps to see what is happening?
Cheers
Comment #8
jugglerpm commentedThanks. disabling the hashtag and username converters worked.
Comment #9
leovw commentedI am getting this too... Is there any sign of a fix as it would be good to be able to enable this?
Thanks
Comment #10
juampynr commentedFixed the errors.
http://drupalcode.org/project/twitter.git/commitdiff/6f11b53318d542d7e74...
I have released a new version (beta3) with this fix and some others. It will be available at the project page and the following link within a few minutes:
http://drupal.org/node/1330376
Comment #11
juampynr commentedPending to migrate the tests and review logic in the 6.x-3.x branch.
Comment #12
juampynr commentedDone. Updated documentation: http://drupalcode.org/project/twitter.git/commitdiff/4e84fa6bf765e3229b4...
New release for Drupal 6: http://drupal.org/node/1330692