Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › sf-functions error
New Landing › How can we help? › Themeforest Theme Support › Dante › sf-functions error
- This topic has 5 replies, 3 voices, and was last updated 10 years by Melanie – SUPPORT.
-
Posted in: Dante
-
February 11, 2014 at 5:35 pm #48044
Received this error after updating a page. Not quite sure what the problem is.
Any advice?
February 12, 2014 at 4:26 am #48164I 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
February 12, 2014 at 4:37 am #48168FYI, 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.
February 12, 2014 at 5:11 am #48170Changing 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!
February 13, 2014 at 8:55 pm #48820This 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.
February 18, 2014 at 7:40 am #49832Thank you for letting us know ielbury!
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.