I have "similar terms" installed on my site at http://honeypot.net/ . No matter which of the "Similar entries from ..." blocks I enable, they're always invisible. I've disabled and re-enabled the module a couple of times, but still nothing. Anything else I might try, or troubleshooting steps I could take?

Comments

rmiddle’s picture

Status: Active » Postponed (maintainer needs more info)

Similar By Terms uses the 2nd arg to grab the node number. It looks like your pathauto settings might be interfering with Similar By Terms method to of getting the node info off the page.

Thanks
Robert

kstrauser’s picture

In similarterms_list(), changing:

if (is_null($nid) && (arg(0) == 'node' && is_numeric(arg(1)))) {

to:

if (arg(0) == 'node' && is_numeric(arg(1))) {

fixed the problem. Under what circumstances would a node id be passed into that function (that is, what am I breaking by disabling that check)?

rmiddle’s picture

By Default nothing should be passing an nid. That is there in case someone wanted to use it.

Thanks
Robert

rmiddle’s picture

Status: Postponed (maintainer needs more info) » Fixed

I have found the is_null is more a pain then it is worth and worse case someone overide gets overridden. I incorporated this change into 1.9. Marking this ticket fixed.

thanks
Robert

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.