Warning: simplexml_load_file(http://twitter.com/statuses/user_timeline/



I was running a php store script for a long time with no problem at all, and all of sudden i got an strange massage on my home page regarding something about twitter. I’m a totally silly person on these types of languages and so on, i just understand that everything was right and i made no changes whatsoever in the files and now i got this ugly 3 lines warning on my page. Would someone please give me any advise on what would be going wrong here?

this is the home page www.jmuller777.com where you can easily see what i`m talking about.

Thanks a lot you you reading me now can help me out.


See this FAQ entry for more information:




I`m still confused… will i be able to solve this error by editing this line code from my script: $url = ‘http://twitter.com/statuses/user_timeline/’.$f[‘variableval’].’.rss?count=5’;


If yes, would you guide me telling where to change?



In the short-term, if you modify your script like so:

$url = 'https://api.twitter.com/1/statuses/user_timeline/'.$f['variableval'].'.rss?count=5';

You’ll be back in business. However, RSS-based URLs are now deprecated and will cease functioning in March 2013. You’ll need to move to a different solution entirely before that time.


That worked like a charm! =}

Do you have any link regarding any new solution option to this March 2013 apocalypse?

Thank you so much!


[node:10248] is the lowest-barrier-to-entry offering we have for that future. Beyond that, you’ll need to use a server-side programming language to leverage OAuth when making timeline requests – I recommend tmhOAuth https://github.com/themattharris/tmhOAuth – likely a [node:124].


As i said it worked yesterday, but today i have again another error at the top of my home page: www.jmuller777.com

The error goes like this: Warning: simplexml_load_file(http://api.twitter.com/1/statuses/user_timeline/jmuller777.rss?count=5) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/denrrou/public_html/jmuller777.com/includes/classes/class.index.php on line 25

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http://api.twitter.com/1/statuses/user_timeline/jmuller777.rss?count=5” in /home/denrrou/public_html/jmuller777.com/includes/classes/class.index.php on line 25

Warning: Invalid argument supplied for foreach() in /home/denrrou/public_html/jmuller777.com/includes/classes/class.index.php on line 27


On v1 methods, HTTP 400 typically means you’re being rate limited – you can only request v1 API urls 150 times per IP address with unauthenticated requests per hour. Either adjust the number of times you request this URL to stay within those limits or leverage OAuth authentication so that you can be more certain of 350 requests per hour. If you decide to leverage OAuth, you should also just move over to API v1.1.


I have no idea on how to do that. But, does it means that the error will disappear in some hours?


I am having an issue with no tweet showing on webpage.(http://wyan.suffolk.lib.ny.us/index.htm) for some reason I am now getting a “Twitter Offline” message in the twitter box.
I am using the codes “html://twitter.com/statuses/user_timeline/MYUSERNAME.json?callback=twitterCallback2&count=1”


Yeah, exactly the same…
If I ever find out what’s wrong I’m gonna:
A) Fix it
B) Help you
C) Kill the guy that broke it!


I just found the answer!

And it works!


Ótimo! Cada dia podemos aprender algo mais. Agradeço a todos que tem contribuido para o nosso aprendizado e enriquecimento dos debates e discursos.

closed #14