Getting this fatal error on one of my ref view widget.

PHP Fatal error:  Call to undefined method stdClass::preview() in /sites/all/modules/entityreference_view_widget/entityreference_view_widget.module on line 245

Looks like it is a common Views issue [945454]

Comments

giorgio79’s picture

Title: Call to undefined method stdClass::preview inentityreference_view_widget.module on line 245 » Call to undefined method stdClass::preview in entityreference_view_widget.module on line 245
giorgio79’s picture

Issue summary: View changes
malovanets’s picture

Which version of Views are you using?
The target view was created for the 1.x version of ERVW, and you now upgraded to 2.x. Am I right?

malovanets’s picture

Version: 7.x-1.0-alpha1 » 7.x-2.0-alpha1
giorgio79’s picture

I am using Views 7.x-3.7

malovanets’s picture

Are you sure that you are using a valid view?

giorgio79’s picture

Yep, I think I found the issue.

My view has several pages, and I added an additional Entity reference widget.

Probably, the module expects a View that has only an Entity Reference widget.

jsacksick’s picture

Status: Active » Fixed

I'm pretty sure it should be fixed now, the module wasn't setting the display of the view, it is now.

Status: Fixed » Closed (fixed)

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