1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

registered feeds posting duplicates

Discussion in 'Troubleshooting and Problems' started by physicspirate, Sep 10, 2011.

  1. physicspirate

    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?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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?
     
  3. physicspirate

    physicspirate Well-Known Member

    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.
     
  4. physicspirate

    physicspirate Well-Known Member

    Ive deleted the feed temporarily because I had nearly two pages of duplicates. This is the feed I was pulling from, I wonder if they are doing something weird that causes xf to post dupes.

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

    Jake Bunce XenForo Moderator Staff Member

    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:

    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

    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/
     
    Brogan likes this.
  6. physicspirate

    physicspirate Well-Known Member

    Thanks Jake for the awesome help.
     

Share This Page