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

jasonglisson’s picture

I'm getting an error as well.

Notice: Undefined property: stdClass::$basename in twitter_signin_admin_settings() (line 15 of

michaek’s picture

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

jasonglisson’s picture

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

michaek’s picture

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

flightrisk’s picture

I 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"?

emarchak’s picture

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

juampynr’s picture

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

I could not reproduce this issue. Is it still failing? Could you provide me with steps to see what is happening?

Cheers

jugglerpm’s picture

Thanks. disabling the hashtag and username converters worked.

leovw’s picture

I am getting this too... Is there any sign of a fix as it would be good to be able to enable this?

Thanks

juampynr’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fixed 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

juampynr’s picture

Assigned: Unassigned » juampynr
Status: Fixed » Needs work

Pending to migrate the tests and review logic in the 6.x-3.x branch.

juampynr’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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