开发者

Feeds error in CakePHP returns "Invalid xml declaration"

I get an error, whenever I try to open the feed on my web app built on CakePHP:

Invalid xml declaration.
Line: 2 Character: 3
<?xml version="1.0" encoding="UTF-8" ?>

I don't really know what else I can do to resolve this problem. I did not change anything in the default template of CakePHP. The weird p开发者_JAVA技巧art is that it is working fine on my local box and other two servers but giving error only on one server.


The XML declaration should be on line 1, not line 2. You are probably accidentally adding an extra newline somewhere. Check out your PHP files. There should be no blank lines after the closing ?> tags at the end of your files!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜