Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2024 at 10:28 UTC
Updated:
26 Nov 2024 at 00:54 UTC
Jump to comment: Most recent
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.
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!