Hi all,
I’m requesting for your assistance on finding why we are having trouble with RSS feeds. If you take a good look at both RSS links:
http://deaftimes.net/index.php/news/rss_email/C5/
http://deaftimes.net/index.php/news/rss_email/C7/
C5 - USA-L news (fail to load)
C7 - Ohio News (works fine)
The template I’m using for the rss_email feed:
{assign_variable:master_weblog_name=“news”}
{assign_variable:main_group=“site”}
{assign_variable:lib_group=“lib”}
{assign_variable:news_group=“news”}
{exp:rss:feed weblog=”{master_weblog_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/”>
<channel>
<title>{weblog_name}: {exp:xml_encode}{exp:weblog:category_heading}{category_name}{/exp:weblog:category_heading}{/exp:xml_encode}</title>
<link>{weblog_url}</link>
<description>{weblog_description}</description>
<dc:language>{weblog_language}</dc:language>
<dc:creator>{email}</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>
<aresource=“http://expressionengine.com/”>
{exp:weblog:entries weblog=”{master_weblog_name}” limit=“20” rdf=“off” status=“open” dynamic_start=“on” disable=“member_data|trackbacks”}
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link>{title_permalink=”{news_group}/article”}?utm_medium=RSS</link>
<guid>{title_permalink=”{news_group}/article”}?utm_medium=RSS#When:{gmt_entry_date format=”%H:%i:%sZ”}</guid>
<description><![CDATA[{news_body}]]></description>
<dc:subject>{exp:xml_encode}{categories backspace=“1”}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
<dc:date>{gmt_entry_date format=”%Y-%m-%dT%H:%i:%s%Q”}</dc:date>
</item>
{/exp:weblog:entries}
</channel>
</rss>
{/exp:rss:feed}
The troublesome line is:
<description><![CDATA[{news_body}]]></description>
If I replaced that <description> line with this line
<description>{exp:xml_encode}{news_body}{/exp:xml_encode}</description>
RSS feed works fine.
Can you tell me what is wrong with it?
Thanks in advance,
Robert J. Rademacher
