TypeError : draggableviews_views_pre_render(): Argument #1 ($view) must be of type ViewExecutable, Drupal\views\ViewExecutable given

Created on 3 June 2024, about 1 year ago

Problem/Motivation

Drupal 10.2.6, PHP 8.3.7 and DraggableViews 2.1.4

I've got the following error message when I edit any of my views from Views UI even for the views where Draggable Views is not used:

TypeError : draggableviews_views_pre_render(): Argument #1 ($view) must be of type ViewExecutable, Drupal\views\ViewExecutable given in draggableviews_views_pre_render() (line 276 of /<DRUPAL_ROOT-DIR>/web/modules/contrib/draggableviews/draggableviews.module).

Proposed resolution

Adding the following line at the top of draggableviews.module seems to solve the issue:

use Drupal\views\ViewExecutable;
πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡«πŸ‡·France gaspounet

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