September 22, 2010 at 4:04 am #1267
I am getting an error when I add the Habitat Twitter widget. I have another twitter widget that seems to work fine. I recently updated to WordPress 3.01.
Here is the error:
Fatal error: Call to undefined function: simplexml_load_string() in /nfs/c06/h05/mnt/97029/domains/iterativelogic.com/html/wp-content/themes/habitat/framework/theme_widgets/tweetbox.php on line 191September 22, 2010 at 5:48 am #34629
Sorry we can’t support third party plugins here – there are too many out there to take care of them. Please use another plugin which works.
The DudeSeptember 22, 2010 at 3:06 pm #34630
I wanted to use the twitter widget that comes with the habitat theme. Is that a third party widget? I only mention the other widget because I have one that does seem to work vs the on the comes with the habitat theme. I was hoping to use the habitat version for consistency in style but I can just not use it.
Any other suggestions?September 22, 2010 at 3:42 pm #34631
No, I’m sorry I didn’t read your post carefully enough – the Habitat Twitter widget is part of the theme and is supported by us.
Did you check your username spelling? I’m asking because this error indicates that the widget can’t access/download your user information. These informations are provided via xml from Twitter — line 187 of tweetbox.php requests and saves this information.
$response = wp_remote_get( 'http://api.twitter.com/1/statuses/user_timeline.xml?screen_name='.$username );
Because the other twitter widget works as expected I’m assuming that the problem is just a minor one (i.e. the problem is not caused by a blocked socket connection)September 22, 2010 at 3:55 pm #34632
Thanks for your help. I found the issue. My web service was still setup to use PHP4. I modified it to use PHP5 and everything is working fine now.
Thanks again for your help and quick response. I love the theme!September 23, 2010 at 5:59 am #34633October 16, 2010 at 12:41 am #34634
I have the same issue. Could you please tell me how to resolve it as well. I checked with my host, and they said to rename the file X.php5.
Would this work? And what files would I need to name X.php5?
Thank you, love the theme!October 16, 2010 at 6:18 am #34635
The topic ‘Twitter Widget returning error’ is closed to new replies.