I get this error when I configure the content types through arguments in views for the similar entries block:

This shows up when viewing the node: Error message
Notice: Undefined property: similar_handler_argument_nid::$nids in similar_handler_argument_nid->query() (line 74 of /var/www/vhosts/dds.com/httpdocs/sites/all/modules/similar/views/similar_handler_argument_nid.inc).

Comments

BeaPower’s picture

?

sashken2’s picture

I have this error too

vrc3’s picture

Change line 74 of similar/views/similar_handler_argument_nid.inc from

$nids = $this->nids;

to

$nids = $this->view->nids;

budda’s picture

My watchdog logs are full of this php notice message too.

JayKayAu’s picture

StatusFileSize
new429 bytes

Here's a patch based on #3. If this works, we should get it committed :)

sashken2’s picture

vrc3, JayKayAu thanks. It's work for me.
But this error stayed:
Notice: Undefined index: ru in similar_handler_argument_nid->query() (line 68 of /home/u2883/domains/34355.ru/sites/all/modules/similar/views/similar_handler_argument_nid.inc).

plastikkposen’s picture

Same line 68 code error here. The patch does not produce any output here...

fixus971’s picture

Similar line 68 code error here:

Notice: Undefined index: it in similar_handler_argument_nid->query()..

only different language code.
in code I see:
$text .= "$node->title {$node->body[$node->language][0]['value']} ";
Please correct.
Thanks -Fixus

jordojuice’s picture

We're working on fixing the Views integration. Since the release of Views 3 the 2.x branches of Similar Entries are no longer compatible with Views. This incompatibility ultimately causes SQL syntax errors. Similar Entries 2.x with Views integration will be supported again when this issue is resolved. See #1345954: Views 3 incompatibility to track this issue. Patches are welcomed : )

jordojuice’s picture

Status: Active » Needs review
StatusFileSize
new490 bytes

This patch should fix this issue.

jordojuice’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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