Closed (fixed)
Project:
Similar Entries
Version:
master
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2008 at 21:15 UTC
Updated:
21 Apr 2008 at 03:31 UTC
For when you will update this module to Drupal 6.0
Comments
Comment #1
deekayen commentedHEAD already works in 6.0, but I don't have anyone that's given feedback to say it works correctly.
http://drupal.org/node/95612
Comment #2
int commentedOk sorry, I will test..
Comment #3
phlepper commentedI tried this version with 6.1 and receive the following error on my pages:
user warning: 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 '\'blog\',\'image\',\'page\',\'poll\',\'story\') GROUP BY n.nid ORDER BY score DE' at line 1 query: SELECT r.nid, MATCH(r.body, r.title) AGAINST ('<article text snipped>') AS in /<path snipped>/drupal/sites/all/modules/similar/similar.module on line 390.Is this a problem with Similar Entries or my site's mySQL settings? According to the "Status Report", I am using PHP 4.4.4 and mySQL 5.0.27.
Thanks,
phlepper
Comment #4
deekayen commentedweird. it does look like a bug-ish error. when I look at the source, there's inconsistent quoting around %s in the query, which should probably be cleaned up. in this case, the contents of $types are getting escaped and shouldn't be. I haven't tried it, but I would guess if you do the following find/replace, it'll fix it:
find
(%s) GROUP BY n.nid ORDER BY score DESC, r.vid DESC", $text, $taxonomy_tids, $text, $node->nid, $types, 0
replace
($types) GROUP BY n.nid ORDER BY score DESC, r.vid DESC", $text, $taxonomy_tids, $text, $node->nid, 0
find
(%s) GROUP BY n.nid ORDER BY score DESC, r.vid DESC", $text, $text, $node->nid, $types, 0
replace
($types) GROUP BY n.nid ORDER BY score DESC, r.vid DESC", $text, $text, $node->nid, 0
Putting vars in the query string is bad practice, so there should be an alternate solution for the real fix.
Comment #5
deekayen commentedi committed #4 to cvs
Comment #6
huayen commentedIs this module now stable enough for production site now?
Comment #7
deekayen commentedIn short, I don't know, but I don't know why not. I haven't upgraded my personal site to D6 yet, which is usually when I know for sure something is stable or not. Try it and report back. If I could get just 1-2 people to say it works for them, I'll make a 1.0 release.
Comment #8
prof_stoopid commentedThe HEAD Release is working fine here on D6.1
Comment #9
huayen commentedInstalled HEAD, works perfectly for drupal V6.1, thanks.
Comment #10
deekayen commentedThat's two. Making release now.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.