Hi, I seem to be having an issue with my previously working RSS feed after upgrading from EE 1.6.6 to the latest version of EE.
Here is the error:
This page contains the following errors: error on line 6 at column 7: Extra content at the end of the document
Just to make sure it wasn’t balking at my existing code, I created a new RSS feed and only included the following:
{exp:rss:feed channel="podcast"}
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
</channel>
</rss>
{/exp:rss:feed}^ This gives me the error I pasted above.
The only thing I can think of that changed between EE1 and EE2 is I had to edit most of the core plugins’ usage functions to be public static functions in order to stop throwing errors. However, reverting those back to their original “function usage” setups doesn’t fix the error for having extra content at the end of the document.
Has anyone else come across these issues?
Every google result I’ve seen explains the problem resides in having too many xml roots, but as you can plainly see in my minimal example my <channel> tags are wrapped in an <rss> tag. Therefore that shouldn’t be the source of the problem.
Stumped.
if it helps, when i view source i see this:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
</channel>
</rss><div solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/.../expressionengine/controllers/ee.php:145)
Filename: core/Common.php
Line Number: 475
</div>Error Number: 1054
Unknown column 'ip_range_low' in 'where clause'
SELECT `country`
FROM (`exp_ip2nation`)
WHERE ip_range_low <= '\0\0\0\0\0\0\0\0\0\0\0\0GUڽ'
AND ip_range_high >= '\0\0\0\0\0\0\0\0\0\0\0\0GUڽ'
ORDER BY `ip_range_low` desc
LIMIT 1
Filename: libraries/Session.php
Line Number: 811Here, try my code that works perfectly, just change names
{preload_replace:master_channel_name="clanci"}
{exp:rss:feed channel="{master_channel_name}"}
<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><![CDATA[Some RSS feed]]></title>
<link>http://www.site.eu</link>
<description>{channel_description}</description>
<dc:language>hr-hr</dc:language>
<dc:creator> www.site.eu </dc:creator>
<dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
<dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
<admin:generatorAgent rdf:resource="http://expressionengine.com/" >
<atom:link href="http://www.site.eu/rss/" rel="self" type="application/rss+xml" >
{exp:channel:entries channel="{master_channel_name}" limit="20" dynamic_start="on" disable="member_data|pagination"}
<item>
<title><![CDATA[{title}]]></title>
<link>{site_url}art/{url_title}</link>
<guid>{site_url}art/{url_title}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
<description><![CDATA[
IMAGE URL
{exp:remove_html}{exp:char_limit total="100"}{tekst}{/exp:char_limit}{/exp:remove_html}
]]></description>
<dc:subject><![CDATA[{categories backspace="1"}{category_name},{/categories}]]></dc:subject>
<dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
</item>
{/exp:channel:entries}
</channel>
</rss>
{/exp:rss:feed}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.