Great module and it really works, but when I enable it, there's a warning displayed on the page.

warning: array_filter() expects parameter 1 to be array, null given in /var/www/sites/all/modules/views/modules/node/views_plugin_argument_validate_node.inc on line 59.

Does anybody see this? needs help please.

Comments

js_kiran’s picture

I get the same message
warning: array_filter() expects parameter 1 to be array, null given in \sites\all\modules\views\modules\node\views_plugin_argument_validate_node.inc on line 58.

dichevad’s picture

I am also getting the same message, which prevents me of using the module, although it works... Can somebody help, please??

dichevad’s picture

Hello,

Actually, I was also getting the error "Duplicate key name - error message on cron", so when I fixed it by applying the suggested for that error change, and also set some Types in the Configure Arguments' box 'Validator Option',
I stopped getting this error.

Hope this helps.

pianomansam’s picture

Status: Active » Needs review

I have confirmed that changing the argument validation from node to basic validation eliminates this error.

DerekAhmedzai’s picture

Yes, that fixes the error. Thanks @pianomansam!

DerekAhmedzai’s picture

Actually, it seems that if you edit and save the similar_entries view, it seems to work.

alexmoreno’s picture

One validator must be chosen, or select basic validation as commented by #4. If we choose to use a validator, a content type must be chosen.

  1. Go to admin/build/views/edit/similar_entries,
  2. click on "Similar entries: Nid"
  3. Go to validator and choose one (for example, node type -> the node type which you will use
jenlampton’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Issue queue triage, closing all 6.x issues. If this one is still a problem for Drupal 7, please re-open.