RSS-bug : cron-log says "Invalid RSS document"

Author Message

Valentin Svelland

Tuesday 09 December 2008 1:07:16 pm

I'm experiencing some problems with my rssimport.php-cronjob. The RSS-feed on my site has stopped, and I've only found a couple of other reports of "Invalid RSS document" in this forum. Do you know the solution to this? Here is the cron-log:

Running cronjobs/unpublish.php

Running cronjobs/rssimport.php
RSSImport Nyheter "Oppdrettstorsk": Starting.
RSSImport Nyheter "Oppdrettstorsk": Invalid RSS document.
RSSImport Fiskeribladet Fiskaren: Starting.
RSSImport Fiskeribladet Fiskaren: Object ( 891 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 892 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 890 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 889 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 888 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 887 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 885 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 886 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 882 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: Object ( 883 ) with URL:  already exists
RSSImport Fiskeribladet Fiskaren: End. 0 objects added

Running cronjobs/indexcontent.php
Starting processing pending search engine modifications
Done

Running cronjobs/hide.php

Running cronjobs/subtreeexpirycleanup.php

Running cronjobs/internal_drafts_cleanup.php
Cleaning up internal drafts...
Cleaned up 0 internal drafts

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

Quoc Huy Nguyen Dinh

Saturday 01 January 2011 2:59:59 pm

OK this thread is very old but for those looking for the solution, I've just encountered this with eZ 4.4 and the cause is that the RSS I'm using is having the same <link> (linking to the main website of the rss feed) for each items thus making eZ thinks all items are the same. But each items of the feed has a different <guid> which makes sense here. So I've edited cronjob/rssimport.php and at about line 210 I've inverted the two if conditions to prefer to use <guid> if it does exist.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.