• Hi,

    I just used “automatic upgrade” to take me to v2,0 of YARPP and now it’s failing to work. The admin page comes up fine, but I get either “no matching results” or a PHP error (see below) depending on the options I select within Titles/Bodies/Tags/Categories. If I select any of them to any degree, I get simply “No related posts.” I’ve tried dropping the relevance from 3 (where it worked before) to 0.1!

    If I set all four to “Do not consider”, I get the following error again followed by “No related posts.”:

    Warning: Division by zero in /homepages/8/d151455252/htdocs/Moshtour/wordpress/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 85

    Either way, no joy – a shame as the previous version was great!

Viewing 12 replies - 31 through 42 (of 42 total)
  • OK, 2.0.4 works in the first instance, just upgrade anr there are related posts, not the same 10 I had before, but at least theres something.

    Something changed that having it at 2 it has 10 results and now 2 or 3 ?

    Thanks, good work.

    I would suggest just skipping this plugin and using the related post feature in simple tags. It is a far more powerful plugin to start with. When used with all its features it can replace several up to half a dozen or more separate plugins.

    True, “Simple Tags” is a brilliant plug-in. But the related posts-part isn’t too clever actually. The relations sometimes really suck, so the approach of YARPP is much cooler. Hope it’s gonna work ??

    @polle001, the new algorithm is quite different from the 1.x algorithm and thus you may have to readjust your threshold value. Hopefully between this and being able to choose exactly which factors go into the algorithm, you’ll be able to make the plugin work for you and your site.

    @bradstinyworld I agree Simple Tags is a fantastic plugin. However, its related posts algorithm is, just like the name, simply tags. Depending on how you use tags on your site (or not use tags) actually looking at the content and title will give better results. Yes, my plugin is more complicated in this regard, and this contributed to the horrible bug fest of the past two days, but I do feel the final results are better. @onkelandy, thanks for the defense. ??

    mitcho

    2.0.4 now works fine. Thanks for the quick response ??

    Hi! v2.0.4 is working like a charm, cool and thanks for the work! I’m just using it for some hours now and already have a wish ?? Right now you have the option that the related posts have to share at least one tag or more than one tag in common (besides just (not) consider). Wouldn’t it be possible to change the option to PERCENTAGE. I was just checking out some posts on my blog and realized that some post only have i.e. 1 or 2 tags.

    So when “more than one tag” is turned on, the plugin won’t find any related posts at all, although there are some! So an additional cool option would be something like “more than 25%/50%/75% percent”, maybe just “more than half” would also be fine. Although this option should work like “at least one” on posts with less than three tags in it.. Something like that ?? Maybe you get a clue what I’m talking about *g*

    Updated to WordPress 2.6 and 2.0.4 and it’s wonderful!

    *huggles*

    Thank you for all your efforts!

    TeraS

    This works but I had to change line two of:

    if (function_exists('related_posts_exist')) {
    	if (related_posts_exist()) {
    		echo '<div class="related"><strong>Related Posts:</strong><ul>';
    		related_posts();
    		echo'</ul></div>';
    	}
    }

    to

    if (related_posts()) {

    which I think is odd because I thought that related_posts_exist was meant for how I used it.

    @iliand @onkelandy @terasuccubi Yay! I’m so glad things are working so well for you guys. ^^

    @onkelandy, Hm, that’s actually not a bad idea… I may incorporate the more than 50% condition in a future version, though I’m afraid of adding too many options and buttons to the options page! If some other users could weigh in, I’d appreciate that.

    mitcho

    @wzeallor, were you having issues with related_posts_exist()? So was another user, and I now know why. I just made that bugfix in the dev version , in case you’d like to go back to using related_posts_exist().

    @wzeallor, do you mind trying this new version with your original code? I’m curious if that fixes the issue.

    mitcho

    Nah doesn’t work for me still. Looking through your plugin’s superb settings, I’ve found that it’s completely unnecessary anyway. I’m using

    if (function_exists('related_posts')) {
    	related_posts();
    }

    I’ve set the “display if no results” to empty and the before and after to what was echoed.

    Thanks for your work!

    Thread Starter IainPurdie

    (@iainpurdie)

    Mitch,

    I auto-upgraded to 2.0.4 and everything now seems to work perfectly. Thanks so much for all the work and effort! Sorry I didn’t reply sooner, but I’m backpacking through Cambodia and internet access hasn’t been as frequent as I’d hoped ??

    Iain (https://www.moshtour.me.uk)

Viewing 12 replies - 31 through 42 (of 42 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Upgraded to 2,0 – now not working’ is closed to new replies.