Friday, June 1, 2012

XML does not work anymore (changed from one server to another)

Hi!

I just have the problem, that I do extract from a xml feed and display it in a view.
It works fine on server1 but not on server2.

I get this error message:
2012-06-01 11:02:08 Warning: Warning (2): SimpleXMLElement::__construct(http://www.domain.com/?feed=rss2) [<a href='http://php.net/simplexmlelement.--construct'>simplexmlelement.--construct</a>]: failed to open stream:
no suitable wrapper could be found in [/homepages/xx/xx/htdocs/lib/Cake/Utility/Xml.php, line 104]

and also I find in error log
2012-06-01 11:02:03 Error: [Exception] String could not be parsed as XML

I am not sure what I should look for?
I can open the same script on another server and there it works just fine!
Why not on a another server?
Is it a script problem?
Or a server setting?

Please advice!
Thanks!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: