Hey :)

Recently I do receive the following error message every now and than, apparently for no special reason

Undefined variable: nids in views_plugin_row_node_rss->pre_render() (line 60 of .../sites/all/modules/views/modules/node/views_plugin_row_node_rss.inc).

It started after I added some views, finally understood what pages are and that they do what I need, deleted these views, created one view and the number of needed pages. It all went fine, the first time this error occurred was after I entered structure->Taxonomy->Vocab1 and jumped back to the homepage without saving any changes.
It does NOT occur when I open the links created by views though. I'll keep an eye on where this error appears, but by now I couldn't find any schema behind..

Thanks

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Can you give us any kind of information to reproduce the problem?

Was the result of the view empty?

moritzz’s picture

Got the same error several times indiscriminately. Shouldn't...

  function pre_render($values) {
    foreach ($values as $row) {
      $nids[] = $row->{$this->field_alias};
    }
    $this->nodes = node_load_multiple($nids);
  }

... read ...

  function pre_render($values) {
    $nids = array();
    foreach ($values as $row) {
      $nids[] = $row->{$this->field_alias};
    }
    $this->nodes = node_load_multiple($nids);
  }
merlinofchaos’s picture

Well, there's no point in calling node_load_multiple() if there are no $nids so that's not really a good solution.

Peasoup’s picture

Hi dereine :)

Sorry, but as I said this happens for apparently no reason even if I don't do anything in views. But the view is not empty, it does what it is intended to do.
Is there anything or anywhere else you'd check in my position? Anything that could lead to the cause that I can check?
Thank you!

Bevan’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)