igogarcia
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Error while retrieving tweetsIt was in fact the PHP version. I’m running PHP5 now with the great help of the 1and1 support team.
Thanks for the feedback
Forum: Fixing WordPress
In reply to: Error while retrieving tweetsThanks for answering 🙂
So for it to work correctly the version of PHP has to be 5.x+ ? If the userdata was received correctly why weren’t the tweets too? It is the exact same function being called 🙁
Update: I’ve contacted my provider http://www.1and1.com and asked them to enable PHP5 in my domains. I could do it manually by changing the extension to .php5 but I rather go for the global solution in the .htaccess file.
Let’s hope it works 🙂
Forum: Fixing WordPress
In reply to: Error while retrieving tweetsI’m done with the problem. I mean, it is not a problem because it is validated as such. “There are no Tweets” therefore it can not print a thing. But the problem would be “Why are there no tweets if userdata is correctly retrieved?”
I hope you can help me out. Thanks
Forum: Fixing WordPress
In reply to: Error while retrieving tweetsSo after a lot of testing the thing is that I don’t know why but the tweets are empty, only the user details are retrieved:
Array ( [last_twitter_id] => igogarcia [twitterwidget-3] => Array ( [last_update] => 1261513969 [user] => Array ( [profile_image_url] => http://a1.twimg.com/profile_images/480867006/iguito_normal.jpg [name] => Rodrigo Garcia [screen_name] => igogarcia [followers_count] => 119 ) [tweets] => Array ( [0] => Array ( [text] => [created_at] => [id] => ) [1] => Array ( [text] => [created_at] => [id] => ) [2] => Array ( [text] => [created_at] => [id] => ) [3] => Array ( [text] => [created_at] => [id] => ) [4] => Array ( [text] => [created_at] => [id] => ) [5] => Array ( [text] => [created_at] => [id] => ) [6] => Array ( [text] => [created_at] => [id] => ) [7] => Array ( [text] => [created_at] => [id] => ) [8] => Array ( [text] => [created_at] => [id] => ) [9] => Array ( [text] => [created_at] => [id] => ) [10] => Array ( [text] => [created_at] => [id] => ) [11] => Array ( [text] => [created_at] => [id] => ) [12] => Array ( [text] => [created_at] => [id] => ) [13] => Array ( [text] => [created_at] => [id] => ) [14] => Array ( [text] => [created_at] => [id] => ) [15] => Array ( [text] => [created_at] => [id] => ) [16] => Array ( [text] => [created_at] => [id] => ) [17] => Array ( [text] => [created_at] => [id] => ) [18] => Array ( [text] => [created_at] => [id] => ) [19] => Array ( [text] => [created_at] => [id] => ) ) ) )Forum: Fixing WordPress
In reply to: Error while retrieving tweetsSo after a lot of testing I did:
$userdata = (array) $userdata; if(!is_array($userdata) || !is_array($tweets)) $error = true;Which in fact works…almost. It display the picture and the followers count. The thing is that there are no tweets. It only outputs the “About 10 hours ago” message
I’ll keep trying and see if I come up with something but please help me if already know the answer
Thanks!
Forum: Fixing WordPress
In reply to: Error while retrieving tweetsIt seems that the problem is in line 24 in widgets.php
if(!is_array($userdata) || !is_array($tweets)) $error = true;$userdata is an Object and $tweets is an Array
What can be done?
Thanks!!