Hi,

the rc1 is't working for me at all, neither as a block (placed and configured with ./admin/build/block) nor in the Views preview. I've ran update.php after installing the module and cleared all caches through drush cc ("cache clear" - "all").

Example: Using default view as provided by the module; vocabulary 1 has term id 1237, I want to filter down to similar nodes tagged with terms from vid 1; I'm editing the views arguments as follows:

  • Validator: content type "Gallery" (content of this type is tagged with terms from vid 1);
  • Limit similarity to terms within these vocabularies: vocabulary 1 checked, everything else unchecked

Next I choose a node which is tagged with tid 1237, in my case nid 6433. IMHO 'Similar By Terms' should now display other nodes tagged with tid 1237 in the views block. It doesn't. The same in Views' "Live preview": Entering "Arguments: 1237", clicking on "Preview", results in: "Query: No query was run".

I had the version 1.x of the 'Similar By Terms' module installed, which was running fine for a long time. I updated to 2.x and followed UPGRADE.markdown. There are no errors logged in watchdog.

Any ideas?

Thanks & greetings, -asb

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jjeff’s picture

Hi,

I don't know that this is the problem, but the argument that you should be entering in the Views preview is the node id (6433) not the term id.

Have you tried the original unmodified default view that comes with the module? Is that working. If you've altered it, then you could clone your view to create a copy, then revert.

I'm wondering if your argument section is set up wrong. That would cause the "Query: No query was run" problem... on the other hand so would entering in the term id instead of the node id.

Generally, my suggestion would be to start with the original view that came with SBT2. If you're sure that you've got multiple nodes with the same terms and the original view isn't getting you a result when you enter the node id into the arguments section of the preview, then perhaps something is awry.

Assuming that you're getting results, then start editing the original view and keep watching the preview 'til you figure out what's causing it to konk out.

-Jeff

asb’s picture

Status: Active » Closed (fixed)

Thanks for you answer; yes, of course the views argument should be the nid. I think it's working now, but I'm not exactly sure why; I reset the unmodified default view and restored my alterations one by one, and on the whole way the Views preview reflected the changes (opposed to yesterday). The modified view I was using yesterday had only two minor alterations in the beginning (removed filter on moderated content and added one field for display), maybe I indeed missed to use the proper argument for the Views preview. Regarding the block not showing up with the default view this might have had something to do with the block caching or the boost page cache (however, theoretically block caches should be cleared by drush cc, and boost shouldn't affect logged-in users). I'll have an eye on this next time I'm setting this module up...

Anyway, it's working at the moment, and it seems to deliver significantly better results than the 6.x-1.x release I used before, in fact I'm really thrilled how good this works. Probably this might be a full replacement for Creating a block that shows related nodes based on a vocabulary.

Thanks again! -asb

jdotti’s picture

Hello,

I was using this fantastic module in v5.x.
I'm in migration between v5.x and v6.x and i'm using last view v6.x module and last similarbyterme v6.x module.

Unfortunatly i'm trying to pass node id argument in view preview and i've got the message " No query was run" and nothing is show in node view page.

For information this the default view of similar node.

Any idea ?

Thanks in advance
JD

jdotti’s picture

Status: Closed (fixed) » Active

Sorry. Reopen the issue

Summit’s picture

Subscribing, greetings, Martijn

jdotti’s picture

Any news ?

asb’s picture

Version: 6.x-2.0-rc1 » 6.x-2.2
Status: Active » Postponed (maintainer needs more info)

Does this issue still apply to the current release? If so, please post a detailed confirguration of your View (or an export), and give the results of the unmodified original default view that comes with the module. If that resolves your problem, please close the issue.

areynolds’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Status: Postponed (maintainer needs more info) » Active
FileSize
4.37 KB

Sounds like I have a similar issue, but for me it depends on content type. For one content type, the view produces results as expected. For another, it simply shows "No Results".

Attached is an export of my view; it's the vanilla view that comes with the module (note that I'm using the dev version). Here is the SQL query from the successful view:

SELECT node.title AS node_title,
node.nid AS nid,
COUNT(node.nid) AS node_count
 FROM drupal_node node 
 LEFT JOIN drupal_term_node term_node ON node.vid = term_node.vid
 WHERE (node.moderate = 0) AND (node.status = 1) AND (term_node.tid = 47) AND (node.nid != 41742)
   ORDER BY node_count DESC

I have tried simulating this query for the non-working content types and it returns results that should work. I'm going to keep poking around to see what I can dig up, thanks for any help!

areynolds’s picture

My problem seemed to stem from the accidental querying of nodes that didn't have associated taxonomy terms. Duh. I'm going to mark this as "Closed (works as designed)", because the functionality of the module doesn't seem to be at error in my use case and the other threads seem inactive.

areynolds’s picture

Status: Active » Closed (works as designed)
vishnu.kumar7’s picture

Hi Alec.. I am also facing the same issue with one content type however another content type using the same taxonomy is showing me all the results... I think its the root cause of the problem i posted on the link below..

http://drupal.org/node/1181566#comment-6244360

We are on Views 3 and Similar terms 6x-2.2.... Are you able to fix this issue ?

Regards
Vishnu Kumar

vishnu.kumar7’s picture

Status: Closed (works as designed) » Needs review
FileSize
4.32 KB

I am also facing the same problem while querying similar terms for any other content type but one... However all the content types are using the same vocab.... Attaching the export of the view... When i am passing node id for any other content type in the argument, It shows "No query was run" however for the node type of blog, it runs the query and shows the result...

any help will be very much appreciated...

Regards
Vishnu Kumar

quicksketch’s picture

Status: Needs review » Closed (fixed)

Let's keep this issue closed. So far everyone has found that this was either a configuration problem or a problem with Views 3, which has just been fixed in #1181566: Compatibility with views 3.