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));
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | web_widget-views-display-1469428-1.patch | 738 bytes | clemens.tolboom |
Comments
Comment #1
clemens.tolboomPlease review patch.
Comment #2
clemens.tolboomPlease credit Floydm for this patch too
See #1479512: An AJAX HTTP error occurred: Fatal error: Cannot use object of type view as array in ... #7 http://drupal.org/node/1479512#comment-6491902
(I closed that one as this issue is older)
#1469428: associative array for theme functions
Other duplicates are:
#1479512: An AJAX HTTP error occurred: Fatal error: Cannot use object of type view as array in ...
#1600536: Fatal error: Cannot use object of type view as array in /includes/theme.inc on line
#1741090: Fatal error: Cannot use object of type view as array in /includes/theme.inc on line
Comment #3
clemens.tolboomPushed to 7.x-1x