WordPress.org

Forums

[Plugin: Yet Another Related Posts Plugin] Upgraded to 2,0 - now not working (43 posts)

  1. IainPurdie
    Member
    Posted 7 years ago #

    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!

  2. polle001
    Member
    Posted 7 years ago #

    Just upgrade from 1.5.1 to 2.0 and now no related posts shows in all of the posts, with 1.5.1 it works perfectly, is there something to adjust so it work again, does the code for the theme change ? as in the other notes there is no example, as the faqs of the plugin says.

    Thanks.

  3. CDSanchez
    Member
    Posted 7 years ago #

    I installed the 2.0 version first and it doesn't display any. When I installed the plugin I got these errors:
    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 63

    Warning: Invalid argument supplied for foreach() in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 63

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 67

    Warning: Invalid argument supplied for foreach() in /home/addonsfi/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 67

    Hopefully it should help in tracking down the problem

    Using PHP5 in safemode

  4. Hi all, thank you for your feedback.

    @IainPurdie I guess I should fix that divide by zero possibility, but the idea is that you would never choose to *not* consider all of the criteria... I personally had to adjust the threshold slightly this version, but I'm surprised you're not getting any results with 0.1! I would recommend turning on "consider post content" and nothing else with some low threshold value and see what happens... As a last resort, have you tried removing the plugin and installing it again? I'm curious to know if that would fix it.

    @polle1 The code did not change, so your theme should be fine. The question may be your threshold, as noted above... I would recommend making it really low, checking what is displayed (with the "show match scores for admins" option on) and finding a new threshold.

    @CDSanchez I've just corrected that bug (a simple variable scope issue) as version 2.0.1, even though wordpress.org isn't updating... you can download it here.

  5. terasuccubi
    Member
    Posted 7 years ago #

    Same issue as Pollie. All results are no related posts found...

    And I have the threshold at 0.

    TeraS

  6. terasuccubi
    Member
    Posted 7 years ago #

    Oh... And I also get this error:

    Parse error: syntax error, unexpected T_DNUMBER in blog/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 63

    TeraS

  7. Jerry Stephens
    Member
    Posted 7 years ago #

    I'm getting the same T_DNUMBER error as terasuccubi. Upgraded from 1.5.1 and it won't activate now as it causes a fatal error.

  8. CDSanchez
    Member
    Posted 7 years ago #

    Upgraded to 2.0.1 and I also get the T_DNUMBER error as well.

  9. Whooop! I just introduced that bug by actually calling this version 2.0.1, which isn't a real number... who knew!? Sorry about that... here's [version 2.0.2](http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.2.0.2.zip).

    mitcho

  10. Fill in the Blank
    Member
    Posted 7 years ago #

    I am having the same issues. And 2.0.2 does not work. Borken php pages and "No Related Posts" displayed.

    I am on php5 mysql5 apache4 wp2.5.1

  11. @phorbidden, can you tell me how the php pages are broken? Thanks--

    mitcho

  12. Fill in the Blank
    Member
    Posted 7 years ago #

    I don't get anything, right when it hits the PHP tag to related_posts() it dies... on index.php

    But on my home.php page it process with "no realted posts"

  13. polle001
    Member
    Posted 7 years ago #

    Hi, I did test changing threshold and none, just a "No related posts" message.

    If I reupload 1.5.1 it works again.

    This 2.0.2 has something new that 2.0 dont ?

    Thanks.

  14. Fill in the Blank
    Member
    Posted 7 years ago #

    I am trying some echos... but I am finding absolutely nothing. Would updating the DB to UTF-8 be an issue?

  15. @polle001 2.0.2 fixes a couple crucial bugs... so does 2.0.3, which I just released. Download 2.0.3 here.

    @phorbidden. 2.0.3 *may* fix your problem as well, though I'm not sure... my db isn't natively in utf8 but that hasn't been an issue for me myself... are you sure there are no errors printed to the source?

    I'm so sorry for all the bugfixes... I'll try to resolve all of these asap!

    mitcho

  16. polle001
    Member
    Posted 7 years ago #

    Just replaced it and the same "No related posts". I havent change a thing and nothing.

    Changing threshold does not help.

    Any ideas ?

  17. @polle001 I would like to learn more about your setup as there may be something I am missing: could we chat online or could I give you a debug version of the plugin? Email me: mitcho@mitcho.com

    Also, what version of WP are you using?

    I apologize but I have to go to bed—I'll check back in in seven hours or so.

    mitcho

  18. Fill in the Blank
    Member
    Posted 7 years ago #

    I updated as well, nothing changed. The source just ends at the place where I added the <?php related_posts() ?> PHP dies. I am good for a debug versiona s well for the moment,b ut I have to do a server upgrade tonight and might just have to go back the the original one I had

  19. Thanks @phorbidden—please email me with contact info. Email + skype/aim would be great.

    mitcho

  20. CDSanchez
    Member
    Posted 7 years ago #

    Upgraded to 2.0.3 and I still get no results

  21. Fill in the Blank
    Member
    Posted 7 years ago #

    @CDSanchez... we are doing some testing and Mitcho is prolly passing out about now... unless you are a champ at MySQL... then we gotta wait ;)

  22. iliand
    Member
    Posted 7 years ago #

    The same problem here - upgraded from 1.5.1 to 2.0.3 and now I get "no related posts" everywhere. I am running WP 2.5.1.

  23. onkelandy
    Member
    Posted 7 years ago #

    I'm using WP 2.6RC1 and YARPP 2.0.3 isn't working. Actually the previous version didn't work either.. It's a pity because your plugin would be very cool... My options are: only condiering tags, match threshold 0.1.

    I testes it with posts with same tags but still didn't work :(

  24. terasuccubi
    Member
    Posted 7 years ago #

    T_DNUMBER error is gone, but with the match threshold at zero I have the no related posts message...

    Running WP 2.5.1 and YARPP 2.0.3 now...

    Hoping that you can solve the issue!

    Good luck!

    TeraS

  25. wzeallor
    Member
    Posted 7 years ago #

    2.0.3 returns no results. But I haven't received an error message.

  26. @CDSanchez, @iliand, @onkelandy, @terasuccubi, @wzeallor

    I apologize for the inconvenience! I've found the one main bug in the code (which basically tied everything to my own blog, thus noone else got any related posts)... try the current test (trunk) version: download it here and *please* tell me if this fixes your woes or not. In particular, for those of you getting the FULLTEXT error, I would like to see if this fixes it.

    mitcho

  27. wzeallor
    Member
    Posted 7 years ago #

    No change for me.

  28. @wzeallor, if you don't mind running a few tests on your set up, I'd greatly appreciate the info. Email me at mitcho@mitcho.com.

  29. @wzeallor, please try the development version again... I believe I've nailed the fulltext issue now... it had to do with how those indices were used in mysql 5.

  30. CDSanchez
    Member
    Posted 7 years ago #

    The dev version worked for me perfectly. Thanks :)

    EDIT: Actually, I noticed that it always returns the same related posts. I don't have a tremendous amount of posts on it but it should still vary. The relevance scores for all stories are always exactly the same when viewing as admin.

    Using WP-Supercache if that matters at all.

    http://addonsfirefox.com if you want to look for yourself.

Topic Closed

This topic has been closed to new replies.

About this Topic