Call to a member function grantPermission() on null in admin_feedback_install()

Created on 22 September 2023, 9 months ago
Updated 26 October 2023, 8 months ago

Problem/Motivation

When installing the module from exisring config (drush si --existing-config) on Drupal 10.1.4 it is possible to trigger this error, which prevents the site install.

Steps to reproduce

Attempt to run drush si --existing-config on a codebase where this module has been installed previously.

Proposed resolution

The issue is discussed in detail in https://www.drupal.org/project/userprotect/issues/3349663 πŸ› Error: Call to a member function grantPermission() on null in userprotect_install() RTBC and is caused by https://www.drupal.org/project/drupal/issues/3112866 πŸ“Œ Remove special case of User module install Fixed , which now means the user module (which creates the anonymous and authenticated roles) may be installed after this module, causing the error. Other modules in core use user_role_grant_permissions() to cope with this eventuality, so we can assume that is the expected resolution.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom MrDaleSmith

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

Comments & Activities

Production build 0.69.0 2024