Hello everyone!

Since enabling this module and creating a view to handle node references, I'll get the following error:

Notice: Undefined property: view::$dom_id in template_preprocess_views_view() (line 116 of /var/www/si/docroot/sites/all/modules/views/theme/theme.inc).

I already found a solution: Instead of using

$output .= $view->render();

use

$output .= $view->preview();

I just found that changes on -dev.

Comments

mmtahir’s picture

I have the same issue. where did you make the changes.

mmtahir’s picture

Fixed: I had ERVW sub module disabled but still getting this error. After applying this patch, the error was gone.

lumio’s picture

I created a patch for that error.

giorgio79’s picture

Status: Active » Needs review
oranges13’s picture

The patch in #3 did not work for me.

aimevp’s picture

The patch in #3 didn't work for me either.
But the patch suggests to replace
$output .= $view->render();
with
$output .= $view->preview($target_view[1]);

But when I used
$output .= $view->preview();
as Lumio suggested in his first post the warning was gone.

aimevp’s picture

Issue summary: View changes

Changes have been made in -dev.

y.sa’s picture

This modification does not worked for me.

Buf found that using $view->pre_execute() before executing the view solved the probleme.

source : https://drupal.org/comment/7201254#comment-7201254

jsacksick’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Please report back if this is still an issue in the 2.x branch. It is a big rewrite that aimed to resolve all known issues with the 1.x branch which is not supported anymore.