RSS Feed Problem
Posted: 04 October 2006 01:45 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  01-03-2004

I’m still having an issue with getting one of my RSS feeds to work. 

I have a weblog called events set up to display in my ‘site’ home page (index).  So my link to the rss page is here: http://goldbeachyouthgroup.com/index.php/site/rss_2.0/

Then in the rss template, I’m sure I still not getting the paths right. 

This is in the top of the page:

{assign_variable:master_weblog_name="events"}
{exp
:rss:feed weblog="{master_weblog_name}"}

And here are the permalinks:

<link>{exp:xml_encode}{title_permalink=site/events}{/exp:xml_encode}</link>
      <
guid>{title_permalink=site/events}#When:{gmt_entry_date format="%H:%i:&#xsZ;"}</guid>

Thanks, Pat smile

Profile
 
 
Posted: 04 October 2006 04:50 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19271
Joined  06-03-2002

Can you please post your entire template?

 Signature 
Profile
MSG
 
 
Posted: 04 October 2006 04:53 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  01-03-2004

Sorry, here it is:

{assign_variable:master_weblog_name="site"}
{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>{exp:xml_encode}{weblog_name}{/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-&#xdT;%H:%i:%s%Q"}</dc:date>
    <
admin:generatorAgent rdf:resource="http://www.pmachine.com/" />
    
{exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
    
<item>
      <
title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
      <
link>{exp:xml_encode}{title_permalink=site/events}{/exp:xml_encode}</link>
      <
guid>{title_permalink=site/events}#When:{gmt_entry_date format="%H:%i:&#xsZ;"}</guid>
      
<description>{exp:xml_encode}{summary}{body}{/exp:xml_encode}</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-&#xdT;%H:%i:%s%Q"}</dc:date>
    </
item>
{/exp:weblog:entries}
    
    
</channel>
</
rss>

{/exp:rss:feed}
Profile
 
 
Posted: 04 October 2006 04:57 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19271
Joined  06-03-2002

Do you have a weblog with the short name “site”?  In your first post you have the {master_weblog_name} variable assigned to “events”.  Sounds like that might be the problem?

 Signature 
Profile
MSG
 
 
Posted: 04 October 2006 05:07 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  01-03-2004

Ok, changed it to this and still wrong.

{assign_variable:master_weblog_name="events"}
{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>{exp:xml_encode}{weblog_name}{/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-&#xdT;%H:%i:%s%Q"}</dc:date>
    <
admin:generatorAgent rdf:resource="http://www.pmachine.com/" />
    
{exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
    
<item>
      <
title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
      <
link>{exp:xml_encode}{title_permalink=events/index}{/exp:xml_encode}</link>
      <
guid>{title_permalink=events/index}#When:{gmt_entry_date format="%H:%i:&#xsZ;"}</guid>
      
<description>{exp:xml_encode}{summary}{body}{/exp:xml_encode}</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-&#xdT;%H:%i:%s%Q"}</dc:date>
    </
item>
{/exp:weblog:entries}
    
    
</channel>
</
rss>

{/exp:rss:feed}
Profile
 
 
Posted: 04 October 2006 05:29 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19271
Joined  06-03-2002

If you are sure that “events” is the proper weblog short name, and you have entries in that weblog, try clearing your caches.

 Signature 
Profile
MSG
 
 
Posted: 04 October 2006 05:43 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  01-03-2004

I will do that after I get back from an appointment.  But I just wanted to make sure you knew that the ‘events’ weblog is embedded in the index ‘site’ weblog. 

Pat smile

Profile
 
 
Posted: 04 October 2006 05:47 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19271
Joined  06-03-2002

Hm, weblogs are not embedded inside of other weblogs.  Methinks you are still confusing templates and weblogs, which are two different animals.

 Signature 
Profile
MSG
 
 
Posted: 04 October 2006 07:35 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  01-03-2004

Ok, I worded that wrong smile 

I cleared the caches and it still doesn’t work.  Here is my page:
http://goldbeachyouthgroup.com/index.php

Thanks, Pat smile

Profile
 
 
Posted: 04 October 2006 08:10 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19271
Joined  06-03-2002

That error only occurs for a few specific reasons.  Can you email me login information for your control panel?  (Address and Super Admin info)  There’s likely something very simple being overlooked.

 Signature 
Profile
MSG
 
 
Posted: 04 October 2006 09:00 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  01-03-2004

Ok, thanks. 

Pat smile

Profile
 
 
Posted: 04 October 2006 10:25 PM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19271
Joined  06-03-2002

All of the entries in that weblog are dated in the future, so you need to use the show_future_entries parameter (for both the RSS Feed tag and the Weblog Entries tag).

 Signature 
Profile
MSG
 
 
Posted: 04 October 2006 10:35 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  01-03-2004

Thank you so much Derek!  I fixed the Atom feed by your instructions too.

Pat smile

Profile
 
 
Posted: 04 October 2006 10:52 PM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19271
Joined  06-03-2002

Yep, that error is triggered only when:

a) no weblog parameter is given
b) a weblog parameter was used but is not a valid weblog
c) no results are available from the query to generate the RSS/Atom information for the feed (i.e. weblog name, url, last updated, etc.)

(c) was the trigger in your case, as there were no entries matching default criteria (dated in the past, open status, etc.)

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 119761 Total Logged-in Users: 71
Total Topics: 125937 Total Anonymous Users: 36
Total Replies: 662563 Total Guests: 395
Total Posts: 788500    
Members ( View Memberlist )
Newest Members:  adamsmithdj1White HattkatimariedelcaljeffewensJuan AlumadontheobaldBCFEA2FBSalicepie