WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Yet Another Related Posts Plugin] Broken in 2.9? (52 posts)

  1. nrepair
    Member
    Posted 4 years ago #

    This plugin seems to be broken in WordPress 2.9. It lists several errors at the top of each post, so I had to deactivate it. Hope it's fixed soon!!

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

  2. @nrepair - it was a YARPP 3.1 issue, not a WP 2.9 issue... I just pushed a fix as YARPP 3.1.1. Please give it a try.

  3. Pascal
    Member
    Posted 4 years ago #

    While upgrading to 3.1.1 and WordPress 2.9 I've got a terribly slow response when using the preview post option. It takes a couple of minutes before it displays the page while prior to these upgrades it was instantly showed.

    With the mysql processlist it appears to be busy with the related cache:

    Copying to tmp table | insert into wp_yarpp_related_cache (reference_ID,ID,score) (SELECT 906, ID, (0+ (MATCH (post_con |

    After a while it starts optimizing, sorting for group, sending to net and then it starts all over again..

    The related cache has only 1200 records while the key word cache only has 300 records.. So it probably shouldn't be this slow.

    Is this a bug?

  4. brasilonline
    Member
    Posted 4 years ago #

    WP 2.9 and YARPP 3.1.1 - same problem like iqpascal. Nothing happens for minutes while saving / publishing a post. I had to deactivate it, too.

  5. nrepair
    Member
    Posted 4 years ago #

    It's taking ages to publish changes to my posts as well. Not sure if it's related, but I just reactivated the YARPP plugin before having this problem.

  6. @brasilonline you're describing a differnt problem... @iqpascal described it being slow when displaying posts. Are you getting that as well?

    If you have "cross-relate posts and pages" on, turning it off might help.

  7. jbleecker
    Member
    Posted 4 years ago #

    Hello - I too had problems that I think track back to YARPP. Yesterday, before the upgrade to 2.9 (I was at the latest 2.8), someone notified me that my feed was not working. I found an error indicating an out of memory situation. I tracked this for a bit, restarting Apache, MySQL, etc. Finally started disabling plugins one by one until it was clear YARPP was causing this. I deactivated it and the feed came back fine. I *just* upgraded to 2.9 and thought to reactivate YARPP, which I did, but then the feed broke again. Let me know if I can provide more details — the error was unspecific except that the feed contained nothing but a PHP error message indicating that the process had run out of memory trying to allocate some number of bytes to default-widgets.php.

  8. ghacks
    Member
    Posted 4 years ago #

    I'm experiencing the same problem when publishing / editing posts on the blog after upgrading to YARPP 3.1.1. Nothing is happening even after minutes of waiting.

  9. @jbleecker - try turning off related posts in the RSS feed.

    @ghacks - I'm looking into that issue now. Are displaying posts in wp-admin slow as well for you?

  10. ghacks
    Member
    Posted 4 years ago #

    I did not check this unfortunately and have since then switched back to the old plugin version 3.0.13 which is not having those issues.

  11. @jbleecker - also, regarding the feed, were you getting errors in the feed or was it just timing out?

  12. Hi all—I believe I fixed the issue in 3.1.2, of which I've released a beta. I'd appreciate some quick sanity checks:

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

  13. Pascal
    Member
    Posted 4 years ago #

    Actually brasilonline describes the same problem. It loads and loads while being busy with the database, when that is all done the page is finally displayed..

    Tried turning of the cross-relate, but it is still a lot slower than the prior version.

    Without cross-relate it takes about 1 minute to preview a page, with cross-relate on it takes about 3 minutes (with a full cpu load...)

  14. ghacks
    Member
    Posted 4 years ago #

    mitchoyoshitaka the download link is not working.

  15. @ghacks it's working for me... please try again?

  16. Pascal
    Member
    Posted 4 years ago #

    The 3.2.1b works just fine (with cross-relate on) regarding the slow preview problems of earlier.

  17. ghacks
    Member
    Posted 4 years ago #

    @mitchoyoshitaka now its working, received a 404 before.

  18. ghacks
    Member
    Posted 4 years ago #

    @mitchoyoshitaka tried the new version, updating works fine now, have not made a new post yet but assume that it will work as well.

  19. Great. I'll push it now.

  20. ghacks
    Member
    Posted 4 years ago #

    @mitchoyoshitaka I'm experiencing database problems that are caused by YarPP (latest version). According to my webhoster the cause of the problem are locked processes that are waiting on wp_yarpp_related_cache.

    "Your WordPress has quite a large number open, but what is a bit more alarming is that many of them are locked. I see that a number of processes are locked, they are all waiting on one large database table, wp_yarpp_related_cache"

  21. Dani3l3
    Member
    Posted 4 years ago #

    Me too... I updated to 3.1.2 this morning and, since then, mysql takes up a lot of CPU and stays stuck for ages on queries like "insert into wp_yarpp_related_cache (reference_ID,ID,score)......".

    I have not really looked at all of the code, but I wonder why it keeps inserting stuff?
    I mean, unless I have actually POSTED something new, or updated something... shouldn't all similarities be already "known" to the plugin?

  22. Dani3l3
    Member
    Posted 4 years ago #

    btw, disabling "cross-relate posts and pages" seems to partially "fix it"... the high load still happens, but it is less frequent and a bit less high.

  23. CallUp
    Member
    Posted 4 years ago #

    Here's some error messages I'm getting in my error log:

    [19-Dec-2009 17:24:27] PHP Warning: array_keys() [function.array-keys]: The first argument should be an array in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 83

    [19-Dec-2009 17:24:27] PHP Warning: Invalid argument supplied for foreach() in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 83

    [19-Dec-2009 17:24:27] PHP Warning: array_keys() [function.array-keys]: The first argument should be an array in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 87

    [19-Dec-2009 17:24:27] PHP Warning: Invalid argument supplied for foreach() in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 87

    [20-Dec-2009 05:34:00] PHP Warning: array_keys() [function.array-keys]: The first argument should be an array in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 83

    [20-Dec-2009 05:34:01] PHP Warning: Invalid argument supplied for foreach() in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 83

    [20-Dec-2009 05:34:01] PHP Warning: array_keys() [function.array-keys]: The first argument should be an array in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 87

    [20-Dec-2009 05:34:01] PHP Warning: Invalid argument supplied for foreach() in /home1/alterpol/public_html/wp-content/plugins/yet-another-related-posts-plugin/includes.php on line 87

    [20-Dec-2009 17:00:04] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 for query delete from wp_yarpp_related_cache where reference_ID in () made by require, require_once, include, the_content, apply_filters, call_user_func_array, yarpp_default, yarpp_related, yarpp_cache_enforce, yarpp_cache_clear

    Hope this helps.

  24. @ghacks, @Dani3l3 - if the load is too much you can follow the general advice (in the FAQ, I believe) to disable "cross-relate posts and pages" and to not consider tags or categories. These should all help. Note, however, that once the cache is organically built up after a while, you should notice a marked decrease in CPU load.

    @Dani3l3 - things are being inserted because those "relatedness" relations aren't known until they're checked the first time. This normally happens when a page is viewed by a visitor. At that time it computes the "relatedness" and then caches it for future use.

    @CallUp - something *very* strange is happening in your installation (it's not getting the right value for a variable which should have just been set)... perhaps it's a plugin conflict? Is this a new YARPP install or an upgrade?

  25. Dani3l3
    Member
    Posted 4 years ago #

    things are being inserted because those "relatedness" relations aren't known until they're checked the first time. This normally happens when a page is viewed by a visitor. At that time it computes the "relatedness" and then caches it for future use.

    I understand, but I *though* that such a cache WAS already built on my db now - I have been running this plugin for several months without this issue, and I am only seeing it after UPGRADING to 3.1.2 :|

    unless the new version requires a "new" cache?

  26. @Dani3l3 I'm not sure what to say... that part of YARPP hasn't changed at all since 3.0. If you changed any pool or relatedness settings in YARPP Options, though, that would have reset the cache.

  27. @Dani3l3 I also released a beta, 3.1.3b1 which may improve long-term performance (it won't help with the initial hit of cache-building when the cache is reset). Feel free to give it a try as well.

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

  28. hifa
    Member
    Posted 4 years ago #

    For three days, I was having High Resource Usage & CPU for my site..
    I tried many things..downgraded, restored backup, changed theme, deactivated plugins. but no luck..
    I have been using your plugin in my three site..your plugin was not having any problem in my other two site..so I never thought your plugin would cause this..then I decided to monitor your plugin when it is active / deactive..

    while your plugin active, I monitored the processes through my cpanel..
    it sometimes increase over 25 processes which is highest number allowed by my hosting firm..also high cpu generated yarpp active..and suddenly I sometimes come up with error establishing databse..

    when I deactivate yarpp, I monitored process for many minutes to make sure..and my blog runs smoothy without any problem..

    So seems yarpp is ok with wordpress 2.9 which works pretty well with my two other sites..

    but must be conflicting with any other plugins..no idea which one it could be..

    I use following plugins

    • WP Super Cache
    • WP Page Numbers
    • WPML Multilingual CMS
    • WP Greet Box
    • WP-PageNavi
    • WP-DBManager
    • WordPress Portfolio Plugin
    • WordPress.com Stats
    • SEO Booster PRO
    • Platinum SEO Pack
    • PC Robots.txt
    • NextGEN Gallery
    • Google Friends Connect Widget
    • Google Analyticator
    • Contact Form 7
    • CommentLuv
    • Akismet

    Let me know If I can provide you any helpful info..as I really want to use your plugin..

    Thanks!

  29. Hifa, I'm sorry to hear that. How is this site different than the others? Is it the same WP, same YARPP, same plugins, same hosting?

  30. hifa
    Member
    Posted 4 years ago #

    Same WP, Same YARPP, Same Hosting but plugins differ..

    I do not know if this makes sense but when I received Database Connection error, I Check the tables having overhead (which yarpp table/s included), and repair them; both my admin panel and site returns back..but it does not last long..

    the plugins I don't use in my two other site are

    • WPML
    • WP Greet Box
    • WordPress Portfolio Plugin
    • NextGEN Gallery
    • Google Friends Connect Widget
    • CommentLuv

    I suspect if the problem is with WPML plugin..I will test by deactivating it and activating urs..

    Maybe it is not all plugin conflict but just my assumption..I will give u report later..

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic