I can't get this module to work with Drupal 7.12 & Views 7.x-3.3

I get the following error Cannot use object of type view as array in theme.inc on line 963

Taking a look at the module's code in the "views\web_widgets_plugin_display_web_widgets.inc" file on line #59 the call to the theme() function is not using and associative array and seems to be the source of this error.

I quickly tried changing the line to use an array but didn't work
$content = theme($this->theme_functions(), array('content'=>$this->view));

Just produces a different error "Fatal error: Call to a member function even_empty() on a non-object in".

Line #67 should also be changed to use an array
$output = web_widgets_render_widget($current_style, array('content'=>$code . $content, 'title'=>$title));

Comments

clemens.tolboom’s picture

Status: Active » Needs review
StatusFileSize
new738 bytes

Please review patch.

clemens.tolboom’s picture

Status: Needs review » Fixed

Pushed to 7.x-1x

Status: Fixed » Closed (fixed)

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