Problem/Motivation
Visiting admin/content/webform
leads to
Error: Call to a member function preview() on null in webform_admin_content() (Zeile 333 von /sites/all/modules/contrib/webform/includes/webform.admin.inc).
This is the related code in that area:
// Determine whether views or hard-coded tables should be used for the
// webforms table.
if (!webform_variable_get('webform_table')) {
$view = views_get_view('webform_webforms');
return $view->preview('default');
}
So it looks like it should use a non-existing view. No idea how it may have come to that situation.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork webform-3472546
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anybodyI think we should simply make it bulletproof like this, just benefits:
Comment #4
anybodyWorks perfectly and makes things even more robust without downsides. Good enough I think.
Comment #5
anybodyWorkaround / alternative is to set the Drupal variable:
drush vset webform_table 1if it is unset or false for any reason and you're running into this.
Comment #6
thomas.frobieterComment #8
liam morlandThanks!