Fork me on GitHub

Help with RSS  Bottom

  • i am having trouble with rss, all my feeds are blank. i am simply trying to offer a rss feed of my news section. it was my understanding that:
    index.php?module=News&func=view&theme=RSS

    would be the link to the feed. i have tried a search in the forms but did not find anything that seemed to help. the feed used to work but over the course of upgrades/migration/module addition it seems to have been broken. currently the rss opens in my browsers rss viewer, it gives the name of the website but then simply says NO ARTICLES. the browser is realizing that it is looking at a feed, but it is not seeing any articles. i have tried it in firefox and safari to the same result.

    i have also tried it in chrome for mac which does not have a feed viewer at this time so it shows it in simple text

    what i am seeing is something like this (note: i have cut out information about the site/articles/users and replaced it with *****)

    Code

    <?xml version="1.0" encoding="utf-8"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    <atom:link href="****/index.php?module=News&amp;func=view&amp;theme=RSS" rel="self" type="application/rss+xml" />
    <title>*******</title>
    *******
    <description>*****</description>
    <language>en</language>
    <managingEditor>********</managingEditor>
    <webMaster>**********</webMaster>






    <div class="pn-frontendbox">
    <h1>News </h1>

    <div class="pn-menu">
    [
    <a href="index.php?module=News">Lead page</a>


    &nbsp;|&nbsp;
    <a href="index.php?module=News&amp;func=archives">Archive</a>

    &nbsp;|&nbsp;
    <a href="index.php?module=News&amp;func=new">Submit Article</a>


    ]
    </div>
    </div>
    <div class="pn-frontendcontainer">




    <div class="news_index">
      <h2 class="news_title"><a href="index.php?module=News&amp;func=display&amp;sid=18">**********</a></h2>
      <span class="news_meta pn-sub">Posted by ***** on Jan 12, 2010 - 04:23 PM</span>

      <div class="news_body">
        <br />
      </div>

     
      <p class="news_footer">
            <a title="Read more about*********" href="index.php?module=News&amp;func=display&amp;sid=18">Read more about ***************</a>  <a class="news_printlink" href="index.php?module=News&amp;func=display&amp;sid=18&amp;theme=Printer"><img src="images/global/print.gif" alt="Printer-friendly page" /></a>
      </p>
    </div>

    <div class="news_index">
      <h2 class="news_title"><a href="index.php?module=News&amp;func=display&amp;sid=17">************</a></h2>
      <span class="news_meta pn-sub">Posted by ****** on Jan 12, 2010 - 02:31 PM</span>

      <div class="news_body">
        <font size="4"><font face="Verdana, Helvetica, Arial"><span >S***********</span></font></font>
      </div>



    and it would continue on like that for all articles.... is there something wrong with the rss theme? has the proper way of using an RSS changed in the new version of zikula? is it just mine?



    thanks
    kyle
  • The News module has specific templates for the RSS-theme. I guess these are not available in your theme.

    Please verify if /themes/rss/templates/modules/News exists and contains at least two template files. If not, you can copy them from the cozi project site.

    If you want any other module output available in RSS, you should create your own RSS-theme templates for that specific module (if it's not available yet)

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • thank you, yes the News folder was missing, i have downloaded them from Cozi, however now instead of getting an empty feed i now get:

    Quote


    This webpage is not available.

    The webpage at ****/index.php?module=News&theme=RSS might be temporarily down or it may have moved permanently to a new web address.

    More information on this error
    Below is the original error message

    Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.


    cant figure out why :( no readers can access it they either give a similar error or just say its unreachable/down
  • Hmmm, it might be possible that your template files are encoded in different character sets.

    If your base zikula files are UTF-8 encoded, but the rss-theme-templates for the News module are ISO-8859-1 encoded (because you copy-pasted the HTML-code into new empty text files for example), than the resulting page has different character sets I think. I have seen the error myself before but never dove into it at the time.

    Try saving the files by downloading this zip file and copy the appropriate files to the correct location in your themes folder:
    http://code.zikula.o…d_path=/&format=zip

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • I'm trying myself how it works againg icon_smile Be careful with multilanguage features and shorturls. shorturls are displayed as /index.php/rss/News/view but that interferes (in my case at least) with the location of rss being that of a new language.

    Otherwise it should just work fine with the templates, so it might be utf encodig like arjen said.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • hm, i use no multilanguage features, no shorturls, i downloaded directly from cozy to my laptop then used filezilla to upload them directly to my site with no editing at all.

    i have used a telnet client to get that page so i could see exactly what is returned without my browser trying to interpret it
    the first and last lines are commands given to or output from telnet

    Code

    get index.php?module=News&theme=rss
    <?xml version="1.0" encoding="utf-8"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    <atom:link href="index.php?module=News&amp;theme=rss" rel="self" type="application/rss+xml" />
    <title>****</title>
    ****
    <description>****</description>
    <language>en</language>
    <managingEditor>****</managingEditor>
    <webMaster>****</webMaster>
    <div ><img src="images/icons/large/error.gif" alt="" width="48" height="48" /></div>
    <h1>System error</h1>
    <h2>An unidentified problem occurred (classified as an error). The following message was returned:</h2>
    <p>An unidentified problem occurred (classified as an error). The following message was returned:</p>
    <p>
        Smarty error: [in news_user_index.htm line 7]: [plugin] modifier 'updated' is not implemented (core.load_plugins.php, line 118)
        </p>
    <p><a href="javascript:history.back(-1)">Go back to previous page</a></p>

    </channel>
    </rss>
    Connection closed by foreign host.


    the files small so ill show the whole thing

    Code

    <item>
    <title><!--[$info.title|pnvarprepfordisplay]--></title>
    <!--[pnmodurl modname=News type=user func=display sid=$info.sid title=$info.urltitle fqurl=true]-->
    <!--[if $showdescription eq 1]-->
    <description><!--[$info.hometext|pnvarprepfordisplay]--></description>
    <!--[/if]-->
    <pubDate><!--[$info.from|updated|published]--></pubDate>
    <guid><!--[pnmodurl modname=News type=user func=display sid=$info.sid title=$info.urltitle fqurl=true]--></guid>
    </item>


    of course line 7 is:

    Code

    <pubDate><!--[$info.from|updated|published]--></pubDate>


    the problem does not seem to be an encoding problem with the template, just that the template is rendering an error instead of a feed, the browser already thinks of it as a feed so i believe it just gets confused and never displays this error because it thinks its a mis-encoded feed.



    edited by: kylegio, datetimebrief
  • do you have pnRender set to "Embed template information within comments inside the source code of pages" - if so, it will break your feed.
  • no that is disabled. i think its more of a Smarty problem

    Code

    Smarty error: [in news_user_index.htm line 7]: [plugin] modifier 'updated' is not implemented (core.load_plugins.php, line 118)


    with line 7 (see above post) removed the feed works fine, however all dates are the current date/time not the article date/time (obviously because line 7 is all about the date and time, so removing it solves the problem of broken feed but then theres no dates/times associated with the articles)

    anyone have any thoughts about the Smarty modifier "updated"



    edited by: kylegio, datetimebrief
  • Download the latest package from the Extensions DB and see if you have the latest version.
    http://community.zikula.org/module-Extensions-display-ot-component-componentid-29.htm
    (fastest is Quick Download (zip) at the right top of that page)

    I'm quite sure that the needed plugins are included in /modules/News/templates/plugins/* and are not available on your site.

    [edit]OK, from the post below: it's not in the News module, but in the rss theme... Case closed anyway: it was a missing plugin icon_cool [/edit]



    edited by: Teb, datetimebrief

    --
    -- Teb
    -- Dutch Zikula Community


    Support questions in a Personal Message will be ignored. Use the forums at all times!
  • Problem has been fixed, a quick search of my entire file system on my server for modifier.updated turned up a file in the themes/rss/plugins dir of another site of mine, that site has not been used in over a year so the file might be out of date, but copying over all the contents of the plugins dir to my current plugins dir solved the problem. the system was simply missing the updated modifier.


    thanks to all for their help!
  • Great icon_biggrin

    --
    campertoday.nl, Module development, Dutch Zikula Community

This list is based on users active over the last 60 minutes.