WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] YARPP Post Duplicate Related Articles (51 posts)

  1. valandilearfalas
    Member
    Posted 3 years ago #

    Hi Mitcho,

    First off, let me just say YARPP is an awesome plugin. Haven't had any problem with it until now.

    I'm using a custom template for YARPP. I remember it being fine a day ago but it is now printing two of the same related articles. The custom template I'm using is the first sample you shared in your post here: http://mitcho.com/blog/projects/yarpp-3-templates/.

    I've tried turning off "automatically display related posts" but no luck. The related article list is being displayed in custom category pages and as I understand it (which is not much), I have to manually use this code to call YARPP: <?php related_posts(); ?>.

    Thanks for the help!

    Andre

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    You're right... if you turn off the "automatically display" option, you'll want to add related_posts() to your template. Are you still getting duplicates? Does this happen on every page? Does it happen with different YARPP templates as well?

  3. valandilearfalas
    Member
    Posted 3 years ago #

    Hi Mitcho,

    Yes, I'm still getting duplicate posts. And all of my posts are displaying the same related articles.

    I then tried to set higher matching threshold and it's displaying nothing. So I lowered it back to there it was, still nothing. I lowered to 1, and still nothing.

    Please help?

    Thank you.

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    @valandilearfalas... this is quite odd. You may want to try clearing the cache completely once, by clearing the table wp_yarpp_related_cache. Or, on YARPP 3.2 (brand new!) add &action=flush to the end of the URL of your YARPP settings page, and reload.

  5. valandilearfalas
    Member
    Posted 3 years ago #

    Hi Mitcho,

    Yup, it's still happening even after I upgraded and flushed it. It was working fine.

    You can see the page here: http://www.australiancreditcards.com.au/purchase-card/.

    If you go to other category pages, they are all the same related articles. These are custom category pages.

    The related articles on blog posts seems to be alright though. You can see the blogs posts by going to the homepage and scrolling down.

    Thanks.

  6. k00ij
    Member
    Posted 3 years ago #

    Hi Mitcho,

    I'm having the same issue.

    For example: http://www.thecollaredsheep.com/cartoon-i-am-looking-for-a-position/

    triple links to the same post. It just started happening with the most recent update I believe.

    Any ideas?

  7. SexyDawnT
    Member
    Posted 3 years ago #

    I am having the same problem since the most recent updates. I am not using custom templates for YARPP, though.
    http://freenclearstuff.com/coupon/rebaterefund-forms/10-off-post-it-products

    That is just one of the links on my site that is doing it

  8. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Hi all—if any of you are able to use a custom YARPP template to print the ID using get_the_ID(), I would appreciate it. I would like to know whether it's actually pointing to different ID entries or not.

  9. valandilearfalas
    Member
    Posted 3 years ago #

    Hi Mitcho,

    I updated mine with the ID.

    Thanks.

  10. Renji
    Member
    Posted 3 years ago #

    Hi Mitcho,
    I was having the same duplicate problem and on the post edit page it was showing me 20 related posts with duplicates. Got it fixed now after using action=flush.

  11. k00ij
    Member
    Posted 3 years ago #

    Renji,

    Can you explain the "action=flush' trick you used to get it to stop displaying duplicates?

  12. Renji
    Member
    Posted 3 years ago #

    k00ij,

    Visit the Yet Another Related Posts Plugin Options page by adding &action=flush at the end of the URL or simply visit the below URL, replacing with your site:
    http://your-site.com/wp-admin/options-general.php?page=yet-another-related-posts-plugin/options.php&action=flush

  13. valandilearfalas
    Member
    Posted 3 years ago #

    I did the flush thing, by the way. It shows no article until it started to rebuild the database and begin to display the same issues. Duplicate articles, except with a different list.

  14. adrianaa
    Member
    Posted 3 years ago #

    Just to let everyone know. I use YARPP and RPS and am having the same problem.

    Since I use RPS to show the posts on the site, the option "automatically display" of YARPP is always off. I tried to put it on for testing and the behavior is exactly the same.

    The problem disappears when I clean the cache with the flush, but after putting one or two articles, the problem returns. This happens in the post I just published and affects some of the oldest too. Sometimes, in the admin panel, after publishing the post, the list of related posts is perfect but when viewing the article on the site, is doubled or tripled ... Other times have doubled in the admin panel itself.

    Very strange ... :)

  15. Renji
    Member
    Posted 3 years ago #

    I just noticed I am having the same problem as Adrianaa mentioned above. The duplicates go after clearing cache but they return after 2-3 new posts.

  16. TheVirtualPreacher
    Member
    Posted 3 years ago #

  17. rhythmdoctor
    Member
    Posted 3 years ago #

    The issue isnt resolved until the plugin is updated to fix for this.

  18. bekarkachra
    Member
    Posted 3 years ago #

    This issue is still not fixed. Clearing the cache brings the problem back next day.

    Infact the whole situation seems like a recursive attempt at fudging the issue.

    On twitter the author says refer to forum
    http://twitter.com/yarpp/

    On forum the last ‘closing post’ says refer to the link on the site
    http://www.clickonf5.org/wordpress/fix-yarpp-duplicate-posts-issue/11559

    On that site it says goto the forum to look for solution !
    http://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-yarpp-post-duplicate-related-articles

    A tip for author – please roll back the NEW cache feature that you implemented. i suspect that had broken your plugin.

  19. rhythmdoctor
    Member
    Posted 3 years ago #

    Yup = I have to remove the plugin unfortunately. Also causes errors in my error log for other reasons. Unfortunately, just not working well as a plugin anymore - bummer, cause I used to love it.

  20. adrianaa
    Member
    Posted 3 years ago #

    YARPP is great, but this bug is too big to be ignored like that. The flush stuf is a paliative, not a solution... So, I'm also remove YARPP, at least for now. I hope the solution comes soon and when the plugin have a new version, I will try again, but for now, there is no other solution besides remove YARPP... I'm sad, because I don't know any other related post plugin with so accuracy, but is better use a plugin that's not so good, but functional. I'm really tired of clean my cache every time that I put a new post or edit some post.

  21. rhythmdoctor
    Member
    Posted 3 years ago #

    @adrianna - similar posts seems to be a good alternative - one Im looking into now but I wish YARPP would just work properly as Id rather use it

  22. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    The issue isnt resolved until the plugin is updated to fix for this.

    I can't agree more.

    @valandilearfalas thanks for adding the IDs to your output. So it indeed looks like the same exact ID entries are being duplicated in the cache. Could you (or anyone else) try making a slight code change, flushing the cache, and seeing if this helps?

    I'm looking at the line:

    $newsql .= "\n group by id \n";

    in magic.php.

    Could someone try changing this to:
    $newsql .= "\n group by ID \n";
    instead and flushing the cache (as I posted above) and seeing if this helps? Thank you all!

  23. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Could someone make a mysql dump of their yarpp_related_cache table and email it to me at yarpp@mitcho.com, referencing this forum thread? Thank you!

  24. adrianaa
    Member
    Posted 3 years ago #

    @rhythmdoctor

    Tks for the sugestion, but I use Related Post Slider so I have to use YARPP or WordPress Related Posts. I don't love WRP, the only parameter taken into consideration are the tags. But like I said, better work a little below my expectations than provide repeat links for my visitors...

    I will continue following the discussion about it. Disabled, but not extinguished the YARPP and I hope to return to it once the problem is resolved.

  25. valandilearfalas
    Member
    Posted 3 years ago #

    hey Mitcho,

    I made your suggested change to the code but the problem is still there.

  26. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks valandilearfalas.

    If someone could send me their yarpp_related_cache table data, that would be much appreciated. I still can't reproduce this issue locally.

  27. SexyDawnT
    Member
    Posted 3 years ago #

    Is there a place we can download a previous version until this is fixed? The other version was working ok.

  28. Renji
    Member
    Posted 3 years ago #

    @SexyDawnT You can download other version of YARPP from here.

    @Mitcho I have mailed you the yarpp_related_cache table data.

  29. mauriciomesquita
    Member
    Posted 3 years ago #

    I believe that is related to post reviews as
    I believe this error on my site to appear when there revisions and auto save

  30. apwinthrop
    Member
    Posted 3 years ago #

    FWIW, I was having the same problem...and then I deleted Akismet and the problem seems to have gone away. Hopefully this info might help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic