Closed (outdated)
Project:
Similar By Terms
Version:
6.x-2.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2011 at 11:14 UTC
Updated:
1 Aug 2016 at 09:45 UTC
Jump to comment: Most recent
Comments
Comment #1
dotsam commentedI have the same issue
Comment #2
thedavidmeister commentedi'm having the same issue. It started as soon as i upgraded to views 3
Comment #3
thedavidmeister commentedfurther information: disabling the similar by terms sort allowed me to control the number of items displayed.
removing the field, and the argument both did nothing.
Comment #4
thedavidmeister commentednope, i can't figure this out.
The query generated using a fixed nid for testing is:
SELECT node.title AS node_title,
node.nid AS nid,
COUNT(node.nid) AS node_count
FROM node node
LEFT JOIN term_node term_node ON node.vid = term_node.vid
WHERE (node.moderate = 0) AND (node.status = 1) AND (term_node.tid IN (660, 3822, 24369, 25020, 27862, 27866, 12223, 27863, 8921, 27864, 758, 12219, 27865, 14586)) AND (node.nid != 161777)
ORDER BY node_count DESC
i tried selecting "use grouping" and "distinct" but these didn't help at all.
Comment #5
BlueBlossom commentedsubscribing. I am having the same issue ever since I upgraded to Views 3. Plus the results are always the same node - whether it is similar or not.
Comment #6
thedavidmeister commentedhrm. This issue totally broke the module, and i'm not in a position to downgrade back to views 2.
doesn't look like we're going to get any help from the module maintainers either since this post is about 6 weeks old now.. how frustrating.
Comment #7
thedavidmeister commentedturning the similar by terms sort off at least fixes the number of items issue.
The module can still filter results that share at least one taxonomy term with the current item/argument, but you have to come up with a compromise sort rule.
I ended up sorting by post date. Luckily i had 5 different taxonomies on this particular content type, two of which were set up specifically for relating articles by topic, so the results returned aren't unusable, but they're not really what this module set out to achieve.
Comment #8
tomsm commentedSimilar by terms 1 is now an unsupported release so I upgraded to version 2.
I have the same issues because I also use Views 3.
Comment #9
tomsm commentedSetting this to major since SBT1 has become an unsupported release.
Comment #10
kenwen commentedsame issue here, subscribing
Comment #11
rmiddle commented#9 I moved SBT1 back in to supported status.
Thanks
Robert
Comment #12
Hardrocker commentedI agree changing the sort criteria from similar by terms seems to work. Not sure what other issues it will trigger just have to wait and see I guess. What is did for sort criteria was change the values to randomize.
Comment #13
smithmilner commentedThis is not a proper fix.
Comment #14
udvranto commentedSame issue here...
Comment #15
udvranto commentedTurning off the sort criteria generates a huge list now. :(
smithmilner, in which file did you update the code?
Comment #16
udvranto commentedI added the code in sites/all/modules/similarterms/views/similarterms.views.inc . The same problem persists! :(
Comment #17
udvranto commentedAdding the following in sites/all/modules/similarterms/views/similarterms.views.inc worked like a charm! Thanks smithmilner! :D
Comment #18
smithmilner commented#13 is a hook, hook_views_pre_execute() to be exact. You can put that into it's own module, just make sure to rename the beginning of the hook accordingly. Also, put the name of your view into the array $add_group_views.
Comment #19
vishnu.kumar7 commentedHi Smith... Thanks for the fix but it worked for me partially....It's listing similar terms for one content type (blog)...
http://thinkingparticle.com/blog/kanha-national-park-india-map-pictures
but not listing similar terms for article type of content..
http://thinkingparticle.com/articles/bandhavgarh-national-park-best-chan...
However the block is configured for both pages.... /blog/* and /articles/*...
With previous version of similar by terms.... Similar content block was appearing on both kind of content type... any clue...
Regards
Vishnu Kumar
Comment #20
takim commented