registered feeds posting duplicates

physicspirate

Well-known member
I've got one rss feed, and it looks like every time it looks for news, it posts the same articles again. The feed isn't particularly busy, so I'm not sure if i'm missing something. Anyone else ever have this problem?
 
I have seen this problem accompanied by a database error. My guess is that the feeder is encountering an error after the post is made but before xf_feed_log is updated. That might explain the duplicates.

Check your error log:

Admin CP -> Tools -> Server Error Log

Anything recent?
 
Hey Jake,

This is the only error I have in my logs:

Code:
Argument 1 passed to XenForo_Template_Helper_Core::setStyleProperties() must be an array, boolean given, called in /library/XenForo/Dependencies/Public.php on line 253 and defined

library/XenForo/Template/Helper/Core.php:1207

My feed has lots of duplicates, and sometimes it creates a dupe every thirty minutes, but then there is one span of a few hours before it reposts.
 
I have confirmed the problem with this feed on my forum as well:

http://us.blizzard.com/en-us/news/rss.xml

I examined the feed and did some testing. The problem is that the guid for some items is not unique. This causes the dupe checker to miss one of the items with the duplicate guid such that it is posted every time.

For example, these two items have the same guid:

Rich (BB code):
	<item>
            <title>Memories of Blizzard Video Contest -- Vote Now!</title>

            <link>/en-us/company/about/b20/vote.html</link>
            <description>
            	<![CDATA[
            <img src="/_images/frontpage/newsthumbs/misc/en-gb/blizz-anniversary.jpg" hspace="20" align="left"/>
            As part of Blizzard Entertainment's twentieth anniversary celebration, we announced the <a href="http://us.blizzard.com/en-us/company/about/b20/contest.html">Memories of Blizzard</a> video contest, in which we <a href="http://us.battle.net/wow/en/blog/2452057">invited you</a> to share your Blizzard game-related memories with us by sending in your creative and touching videos. 
		<br /><br />
		Now the submission deadline has passed, and we've selected our favorites to go up on the contest page. The contest isn't over yet though! You can still play a role in shaping this Blizzard memory by visiting the <a href="/en-us/company/about/b20/vote.html">contest page</a> and voting on your favorite videos.
		<br /><br />
		Winners could earn awesome prizes, including: 
		<ul>
			<li>An expenses-paid trip to BlizzCon</li>
			<li>Keyboards, mice, headsets, and more from Razer, SteelSeries, and Creative Labs</li>
			<li>Drinking vessels from TavernCraft</li>
			<li>Action figures from DCDirect</li>
			<li>Custom posters featuring your character from PrintWarcraft</li>
		</ul>
	            ]]>
            </description>
            <author>blizzard@blizzard.com (Blizzard Entertainment)</author>           
            <guid isPermaLink="false">http://www.blizzard.com/news/?2011-06#101700</guid>
            <pubDate>Fri, 10 Jun 2011 17:00:00 PDT</pubDate>

	</item>
   
	<item>
            <title>New StarCraft Fan Art</title>
            <link>/community/fanart/?ip=starcraft</link>
            <description>
            	<![CDATA[
            <img src="/_images/frontpage/newsthumbs/fanart/110610.jpg" hspace="20" align="left"/>
            The <a href="/community/fanart/?ip=starcraft">Blizzard Fan Art Section</a> has been updated with 4 new pieces of fan artwork set within the StarCraft universe.
	<br/><br/>
Would you like to share your artistic talents with the community? <a href="http://us.blizzard.com/en-us/community/fanart/rules.html">Submit</a> your fan art today!
	            ]]>
            </description>
            <author>blizzard@blizzard.com (Blizzard Entertainment)</author>           
            <guid isPermaLink="false">http://www.blizzard.com/news/?2011-06#101700</guid>

            <pubDate>Fri, 10 Jun 2011 17:00:00 PDT</pubDate>
	</item>

This is a problem with the feed itself. The specification says the guid must be unique:

http://www.w3schools.com/rss/rss_tag_guid.asp

The <guid> element defines a unique identifier for the item.

You should contact Blizzard about this.

I have also posted a bug report:

http://xenforo.com/community/threads/xf_feed_log-updates-on-duplicate-key.19708/
 
Top Bottom