WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
No related posts. (95 posts)

  1. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @Iridox, @the1path, thanks for the update. If the toggles aren't working, it may be a javascript error. Can you see if there are any errors in your browser's error console?

  2. Evan Jacobs
    Member
    Posted 2 years ago #

    The toggles work fine for me - some of the items were just hidden by default that weren't before.

    I'm running PHP 5.3.8 on my server for reference. I ended up reverting to YARPP 3.3 for the time being.

  3. Evan Jacobs
    Member
    Posted 2 years ago #

    I'm also getting a lot of "Cache computation ended prematurely. Try reloading the page and continuing."

    I have a generous script execution time set in my PHP setup, so I'm not sure what would be causing this... It'll go up to about 50% and die. Then go up in 5-10% increments with each build after.

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    I assume you're using the YARPP Experiments plugin to build the cache manually? There's no need to build the cache manually, FYI.

  5. Evan Jacobs
    Member
    Posted 2 years ago #

    I was trying it because it wasn't building organically.

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Iridox, are you by chance on a multisite install or do you have a custom db table prefix? If so, this beta may help:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.2b1.zip

  7. the1path
    Member
    Posted 2 years ago #

    No errors in browser checking firebug and error console.

    Toggle still dont work but I found my missing options in the screen options, doh!

    Hopefully 3.4.2 will solve the "no related posts" issue.

  8. Evan Jacobs
    Member
    Posted 2 years ago #

    I do have a custom prefix, yes. Are you not using the $wpdb class to access the database?

    I'll give the beta a try later today.

  9. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Hopefully 3.4.2 will solve the "no related posts" issue.

    It would be great to hear from you whether that beta does fix it for you. I am hoping to push this version out asap.

  10. the1path
    Member
    Posted 2 years ago #

    OK mitcho I can confirm that the beta does NOT fix it for me.

    I am on a standard single WP install with the standard DB prefix.

    I installed your beta and checked all my settings (my match threshold is 2). Should the fix be instant? If so its a no go Im afraid.

  11. Evan Jacobs
    Member
    Posted 2 years ago #

    The beta works - thanks for the awesome support mitcho!

  12. manunkind
    Member
    Posted 2 years ago #

    The beta does not fix my issue either. I'm using the custom template widget.

  13. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @manunkind thanks for the report. I'm assuming 3.4.2 is the same?

    @the1path are you also using a custom template through the widget?

  14. the1path
    Member
    Posted 2 years ago #

    Hi mitcho. No Im just using the function call in my single.php

  15. the1path
    Member
    Posted 2 years ago #

    mitcho and everyone. I installed the YARPP Experiments plugin, cleared the cache and rebuilt it. Now everything is working!!

    Perhaps you could build this function into the official plugin, so when a new one is installed it clears cache and rebuilds?

    :)

  16. rahmis
    Member
    Posted 2 years ago #

    I installed the YARPP Experiments plugin, cleared the cache and rebuilt it. Now everything is working!!

    Same here... until I made a new post. No related posts there...

  17. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @the1path great!

    @rahmis but if you build the cache manually, do you get results for that new post?

  18. rahmis
    Member
    Posted 2 years ago #

    mitcho,

    Yes, I do.

  19. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Hi all, if you're having trouble getting related posts to new posts you write, please try this new beta:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.3b1.zip (link will work in a few minutes)

  20. azn137
    Member
    Posted 2 years ago #

    it looks like i'm having the "no related post" issue as well. i've tried clearing the caches of DB Cache Reloaded, W3TC and YARPP, no luck. this only happens on some old posts, not all.

    here's a few screen shots:

    http://www.jpegtown.com/user_uploads/el8DnpA_Capture.PNG

    http://www.jpegtown.com/user_uploads/CfSUUXi_Capture2.PNG

    here's the snippet of my yarpp-template-thumbnail.php

    <?php if ($related_query->have_posts()):?>
    	<p style="font-weight: bold;">You might also like:</p>
    	<?php while ($related_query->have_posts()) : $related_query->the_post(); ?>
    		<div class="related_post_thumb">
    	<?php
    		// tambnguyen
    		$width = 90;
    		$height = 90;
    		$classtext = 'related_post_thumb_img';
    		$titletext = get_the_title();
    		$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
    		$thumb = $thumbnail["thumb"];
    		echo '<a href="' . get_permalink() . '" rel="bookmark" title="' . $titletext . '">';
    		echo ($thumb <> '') ? print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext) : $titletext;
    		echo '<span>' . substr($titletext, 0, 40) . '...</span>';
    		echo '</a>';
    	?>
    		</div>
    
    	<?php endwhile; ?>
    	<div class="clearfix"></div>
    <?php endif; ?>

    oh, i'm running WP 3.3 with the official YARPP 3.4.2.

  21. mdatawt
    Member
    Posted 2 years ago #

    Hello,

    I have this issue too.

    Running WP 3.2.1 and YARPP 3.4.2. Standard usage, no custom template.

    Every new post has an empty related list. To make the list appear, I have to :

    - Change the relevant score : lower or higher (I tried 5 to 4 then 4 to 5) it does the trick

    or

    - Flush the YARPP cache

    Since the score changing seems to empty the cache, I think this is a cache related issue.

    Best regards,

  22. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @mdatawt, yes, changing the relevance score flushes the cache.

    @mdatawt, @azn137 there was a bug whereby it became very difficult to get related posts on new posts you write. I believe 3.4.3b1 fixes this:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.3b1.zip

    Please try installing that version, clearing the cache, then writing a new post and seeing if you get any results. Thanks!

  23. azn137
    Member
    Posted 2 years ago #

    Nope, 3.4.3b1 still comes up a lot of posts with nothing related, while there were before.

    2 things I've noticed:

    1) I keep getting the "Cache computation ended prematurely. Try reloading the page and continuing." error. It takes about 3-5 tries to get it to complete.

    2) My scores are quite low. I used to see A LOT of related posts with scores higher than 10. This is what it reports: "Score (among those related): avg 9.001, sd 4.842". I've set the threshold down to 3 with the same low results.

  24. azn137
    Member
    Posted 2 years ago #

    More update: I've gone ahead and tried disabling both DB Cache Reloaded (let's call this DBCR) and W3TC, still same results, so this is definitely not a caching problem, but more like a algorithmic/scoring problem.

    If you want, I can probaly export the YARPP db out to a file for you to inspect.

    Thanks,

    -Tam

  25. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @azn137 What I'm concerned with diagnosing was an issue where *no* new posts were getting related posts... Your score report sounds perfectly healthy, like some posts have related posts and some do not. As for how the results may be different than in the past, I don't have anything I can really say about that. The scoring of tags and categories in common did become more accurate (though perhaps stricter) in 3.4.x.

  26. cadbloke
    Member
    Posted 2 years ago #

    Hiya

    I'm also not getting any related posts but I spotted this error on my page...

    Warning: Invalid argument supplied for foreach() in /...path.../yet-another-related-posts-plugin/class-cache.php on line 231

    Running WP 3.3, Hybrid News - chile of Hybrid 1.0, I have a db prefix, wp super cache. YARPP 3.4.3b2, hotfix.

    I tried the experiments plugin - it won't build a cache.

    I'm running it on http://www.CADbloke.com but I've disabled it for now - not too keen on directory listings in my posts.

    I hope this helps you track down the problem.

  27. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks @cadbloke! I figured out the issue; 3.4.3b3 should fix this issue. http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.3b3.zip

  28. rahmis
    Member
    Posted 2 years ago #

    Looks like 3.4.3b3 is working. I added a new post and related posts are there. Thank you so much.

  29. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Fantastic! There's a little more testing I want to do with 3.4.3b3, but if I don't find any issues I'll release it as 3.4.3.

  30. cadbloke
    Member
    Posted 2 years ago #

    b3 Works on my site. eg. http://www.cadbloke.com/installing-acne-on-windows-7/

    I haven't added any new posts (long story :/) but it seems ok. Nice one. Thanks for fixing it so quickly, @Mitcho.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic