Error: Call to a member function grantPermission() on null in userprotect_install()

Created on 22 March 2023, over 1 year ago
Updated 19 June 2024, 5 months ago

Problem/Motivation

When installing a project from existing config you will get the fatal error:

Error: Call to a member function grantPermission() on null in userprotect_install()

Steps to reproduce

Install userprotect module. Add some rules. Export config. Run

drush site:install --existing-config

Proposed resolution

Add an extra condition to check if $role variable exists.

Remaining tasks

Testing, reviews.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece TheodorosPloumis Greece

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