Aug
25

Fatal error: Uncaught exception ‘Exception’ with message ‘String could not be parsed as XML’

2009

Throw this exception when the return of request is null, probably an error page like 404 or other server errors.

The reasons of errors are the following

1) Sometime twitter go down

2) The url is incorrect (The username setting up on ptwix is wrong)

3) You use a Proxy server, than php couldn’t request a url.

I suggest you the direct testing of url for exlude twitter server errors or wrong username

Example url: http://twitter.com/statuses/user_timeline/username.xml?count=20

Related posts

Tags: , , ,

Leave a Reply