[Plugin: Yet Another Related Posts Plugin] No related posts
-
I can’t get the YARPP plugin to work. I’m running WP 2.8 and 3.0.6. Just upgraded both WP and the plugin yesterday, which is when it stopped working. It worked great before. The server is running PHP5 and MySQL 5.0.45.
I read through the FAQ and the forums to try and figure out what’s going on, but still can’t get it working. When I re-build the cache, then return to the YARPP options page, it shows the cache at 0%. The build on the fly option is enabled.
Any help would be appreciated.
-
Gene, if you are expecting timely support, I recommend you find a paid solution for your issues. I try to check these forums once a week or so and improve YARPP in my limited spare time.
@badke, I’m not sure what’s going on there, but YARPP <3 is unsupported now so I won’t be investigating that.
To all else, I just had a family emergency and will be afk for a while.
Listen, if you take the time to develop a plugin, you put yourself in a position to make at least an effort to provide support. If there are dozens of messages about people who can’t get the thing to work when upgrading to the latest version, clearly there are issues you should investigate. You have to consider the time we put into trying these things out before either adopting them or giving them up.
I’m sorry to hear of your family emergency. Certainly I understand how that impacts on the things you will be doing for a while.
I hope, though, that when you get back, you’ll consider how much people have spent investing their energies into using your product and maybe you’ll be willing to provide a modicum of help when there are clearly serious issues. I mean, why should I pay someone else to fix your product? Are we serious.
Gene Steinberg
Gene, you need to step back and reevaluate the situation.
You have not paid a dime to Mitcho, therefore you are not entitled to anything. Realize that he has ALREADY offered significant value for free, by writing, developing, and supporting the YARPP plugin. And here he is, responding to support in this forum. But for you, this is evidently not enough.
The reality? His plugin is what it is, take it or leave it. Yes, it is disappointing when things don’t work, but nobody has guaranteed support. When you obtain free software, you accept it “AS IS” and all risks become yours to bear.
It would be nice when Mitcho’s family emergency calms down, that he could diagnose the YARPP v3 bug causing “no related posts”. But what gives you the right to *demand* that he does this? Be careful, or your attitude will drive free plugin authors to stop offering them altogether. After all, this is a giant net-loss for them. Disrespect their generosity too much, and perhaps it won’t be worth their time any longer to develop.
Give an inch and they take a mile, and all that… Sheesh.
I am demanding nothing.
But when lots of people report problems with a product, definitely the author needs to make a better effort to isolate the problem.
As to risks: No risk on my part. If it doesn’t work, and nobody can figure out why, I look for another solution.
Only the author loses in the end. Consider, for example, if the author is accepting donations. Why donate hard-earned money to someone who has a product that isn’t doing the job and isn’t providing a reasonable level of support? You need to step back and think about the consequences of what you’re saying and suggesting. You have it all backwards!
Gene
I just give some insight to plugin’s DB tables. In my case, the “wp_yarpp_keyword_cache” table is filled with normal data, but “wp_yarpp_related_cache” table’s lines all have 0 values in “ID” and “score” fields.
I tried to truncate this tables and to rebuild the cache data several times, but tables’ data remains as i’ve mentioned before.
Hi all—I’m back and am working on a diagnostic to add, as mentioned before, but I haven’t gotten it working completely yet… it’ll probably be in 3.0.14 beta 2.
Thanks for all the feedback.
Glad to hear you’re back. Thanks for putting the effort into this, and I hope it’ll help solve the problem
Like many others I also have had problems upgrading from 2.1.4 to 3.0.4 (even up to the latest 3.0.13). There is always “No related posts”. I really like YARP, but for now I have to go with Efficient Related Posts instead.
I hope this bug gets sorted out, I’d love to come back to YARP.
Btw, for me, I found that there is a difference depending on which version of MySQL I run.
With MySQL 4.1.7: YARP 2.1.4 works, YARP 3.0.13 does NOT work.
With MySQL 5.0.45: YARP 2.1.4 works, YARP 3.0.13 works.Nothing else in the blog site changes. I just change wp-config.php to point to an alternate MySQL server I have on another system.
I noted other people have reported problems even when their MySQL is of newer version than the 5.0.45 I have. So I’m not sure if this is an important finding or not.
YARPP 3.0.9, 3.0.13 and 3.0.14b1 show “no related posts” to me too. The MySQL server is of a version 5.0.44. I am running WordPress 2.8.4 with some plug-ins including SuperCache. I’ve tried to disable it, but that doesn’t help.
As others pointed out, the wp_yarpp_related_cache table looks strange … “reference_ID” column seems ok, but “ID” and “score” columns contains zeros in almost all of the positions (with the exception of one entry).
I installed YARPP and it worked great til I added another post and then it stopped working and I can’t get it to work again. This is an automatic install, I did nothing manually. Only thing I did was add another category and checked that as well and then updated YARPP and it no longer works.
Where do I find the wp_yarpp_related_cache table I see so many mention?
Thanks
Rhia42: You have to install phpMyAdmin, so you can view your database.
Anyway, I think I am slowly starting to see the root of the problem on my system. Here is my hypothesis:
The issue seems to be in the cache generation, more precisely: The queries that generate the yarpp_related_cache are sometimes timing out.
I sometimes see the “Constructing the related posts timed out” message (I haven’t seen that before this week), but it seems to me, that this is only shown for the first query. If the subsequent queries fail, the user won’t know that (!) and the yarpp_related_cache table contains a lot of zeroes.In my case, this difference lies in the WPG2 plug-in, which significantly slows down certain operations. With this plug-in disable the cache generation of related posts takes about 30 seconds and yarpp_related_cache table contains those zeroes and a few valid numbers – these numbers are different every time I rebuild the cache, so I can see that it’s not a simple software error (it would probably be the same every time).
With the WPG2 deactivated, the generation takes about 4 seconds and all is ok. Of course, for different blogs, there might be different plug-ins that cause this slowdown.The solution might be to increase the waiting time, but I don’t know exactly how to do it. I will try to guess it, but I am no PHP/Java/Ajax programmer, so it is a bit difficult for me (I am only experienced in C++/Pascal). Mitchoyoshitaka, could you help me, please?
Aside from that, when I was examining the code, I found one possible inefficiency in yarpp_get_cached_keywords() function:
$out = $wpdb->get_var("select $type from {$wpdb->prefix}yarpp_keyword_cache where ID = $ID"); if ($out === false or $out == '') yarpp_cache_keywords($ID); $out = $wpdb->get_var("select $type from {$wpdb->prefix}yarpp_keyword_cache where ID = $ID"); }
should probably be:
$out = $wpdb->get_var("select $type from {$wpdb->prefix}yarpp_keyword_cache where ID = $ID"); if ($out === false or $out == '') { yarpp_cache_keywords($ID); $out = $wpdb->get_var("select $type from {$wpdb->prefix}yarpp_keyword_cache where ID = $ID"); }
I stand corrected, the main problem wasn’t the timeout. But I found a solution (that works for me at least) ??
It can be fixed as follows. All done in 3.0.14b1, file magic.php. Replace line 212, originally:
$newsql .= " having score >= $safethreshold";
with this:
$newsql .= " having score >= " . number_format($safethreshold, 2, '.', '');
Explanation: It was a “localization bug”. The original line generated SQL select with
“… having score >= 0,5 …”
which is correct in my language (Czech), but incorrect in English and SQL. The second statement will generate
“… having score >= 0.5 …”
Surprisingly, this happens only when WPCG2 plugin is active, which probably means that WP itself works in neutral language and WPG2 switched the context somehow – the problem might be in WPG2, but I guess the same problem happens with some other plugins.Hope it will help you!
I am also having the same problem as everyone else on here. This plugin was working fine for me and worked really well but then all of a sudden it cannot find any related posts at all even on pages which previously had been seen to have related posts. I have tried everything suggested here (within my capabilities) but with no joy. To be honest I didn’t realise it had stopped working so I don’t know how long it has been like this. The only thing I can think of is whether one of the recent updates to WordPress have somehow affected the plugin because for me that is all that has changed but then if the author doesn’t suffer the same problems I am at a complete loss here.
I would really like to continue using the plugin if a solution can be found otherwise I need to find a more stable alternative which will do the same job.Mitchoyoshitaka, first of all – thanks for YARP and for your work.
I have WordPress with russain language, YARP is working on my test setup, but wp_yarpp_keyword_cache contains no single russian(cyrilic) word! Only english(latin), sometimes containg on posts (like Mercedes, Star Wars etc).
Is this normal situation for YARP?Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8d
PHP/5.2.4
MySQL 5.0.45 (MyISAM, UTF8)
WordPress 2.8.4 (UTF8)
- The topic ‘[Plugin: Yet Another Related Posts Plugin] No related posts’ is closed to new replies.