New Landing How can we help? Themeforest Theme Support Dante sf-functions error

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #48044
    Began
    Member
    Post count: 1

    Received this error after updating a page. Not quite sure what the problem is.

    Any advice?

    #48164
    ielbury
    Member
    Post count: 51

    I get this error as well except at line 198.

    [Tue Feb 11 20:01:07.743069 2014] [:error] [pid 1614] [client 192.168.0.54:58161] PHP Fatal error: Cannot use object of type stdClass as array in /var/www/wp-content/themes/dante/swift-framework/sf-functions.php on line 198

    In my case it looks like it happens after calling getTweets() and the cache containing the tweets has expired. It happens once then everything is Ok until the cache expires again.

    This problem started after the 2.0 update. I am currently on 2.1.

    Thanks, Ian

    #48168
    ielbury
    Member
    Post count: 51

    FYI, I just remembered that the oAuth Twitter Feed plugin was updated to version 2.2 around the same time as the Dante 2.0 release.

    I checked the support for the oAuth Twitter Feed plugin and there does not appear to be any support issues related to this issue in the 2.2 time frame but I could be wrong.

    #48170
    ielbury
    Member
    Post count: 51

    Changing the cache duration to 1 makes this problem reproduceable.

    Added a print_r($tweet); before the if($tweet[‘text’]) and this is the result:

    stdClass Object ( [created_at] => Wed Feb 12 02:01:22 +0000 2014 [id] => 433420533779402752 [id_str] => 433420533779402752 [text] => Twitter is Quietly Testing A New Version - Looks A Lot Like Facebook http://t.co/pmWTk6jKrU via @mashable [source] => Buffer [truncated] => [in_reply_to_status_id] => [in_reply_to_status_id_str] => [in_reply_to_user_id] => [in_reply_to_user_id_str] => [in_reply_to_screen_name] => [user] => stdClass Object ( [id] => 102263196 [id_str] => 102263196 ) [geo] => [coordinates] => [place] => [contributors] => [retweet_count] => 0 [favorite_count] => 0 [entities] => stdClass Object ( [hashtags] => Array ( ) [symbols] => Array ( ) [urls] => Array ( [0] => stdClass Object ( [url] => http://t.co/pmWTk6jKrU [expanded_url] => http://on.mash.to/1bnjwj7 [display_url] => on.mash.to/1bnjwj7 [indices] => Array ( [0] => 69 [1] => 91 ) ) ) [user_mentions] => Array ( [0] => stdClass Object ( [screen_name] => mashable [name] => Mashable [id] => 972651 [id_str] => 972651 [indices] => Array ( [0] => 96 [1] => 105 ) ) ) ) [favorited] => [retweeted] => [possibly_sensitive] => [lang] => en ) 
    Fatal error: Cannot use object of type stdClass as array in /var/www/wp-content/themes/dante/swift-framework/sf-functions.php on line 200

    If I change the cache duration back to the default, the tweet is returned as an array as such it works.

    Hope this helps!

    #48820
    ielbury
    Member
    Post count: 51

    This seems to be a problem with version 2.2.0 of the oAuth Twitter Feed for Developers plugin. You need to go back to version 2.1.4 which can be downloaded here.

    There are several posts with the same problem.

    #49832
    Melanie – SUPPORT
    Member
    Post count: 11032

    Thank you for letting us know ielbury!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register