Call to a member function preview() on null in webform_admin_content

Created on 6 September 2024, 7 months ago

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

🐛 Bug report
Status

Active

Version

4.26

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024