Too few arguments to function Drupal\delete_all\Controller\DeleteControllerBase::__construct()

Created on 9 June 2022, over 2 years ago
Updated 7 August 2023, over 1 year ago

Problem/Motivation

It is not possible to delete content from /admin/content/delete_content, nor is it possible to delete content from /admin/people/delete_people. When I attempt to do either, I get the following PHP error:

Too few arguments to function Drupal\delete_all\Controller\DeleteControllerBase::__construct()

Steps to reproduce

Attempt to delete content from /admin/content/delete_content.
Attempt to delete users from /admin/people/delete_people.

Proposed resolution

The problem is that the respective forms, ContentDelete.php and PeopleDelete.php, are not passing the database connection to the DeleteControllerBase constructor. Update both forms to pass the database connection to the constructor.

Remaining tasks

I will submit a patch shortly.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States paulmckibben Atlanta, GA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024