Problem/Motivation

When installing drupal from an existing configuration that contains this module, installation fails with the following error:

[error] Error: Call to a member function grantPermission() on null in message_banner_install() (line 18 of /var/www/html/web/modules/contrib/message_banner/message_banner.install) #0 [internal function]: message_banner_install(true)

Steps to reproduce

1. Install this module on a blank drupal (10.1.1) site.
2. Export config: drush cex -y
3. Reinstall drupal from the configuration: drush si -y --existing-config
4. You should see the above error.

CommentFileSizeAuthor
#2 message-banner-3387007-1.patch858 byteschanderbhushan
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

chanderbhushan created an issue. See original summary.

chanderbhushan’s picture

StatusFileSize
new858 bytes

Applied patch to fix.

chanderbhushan’s picture

Status: Active » Needs review

Sophie.SK made their first commit to this issue’s fork.

  • Sophie.SK committed ab9e424d on 2.0.x
    Issue #3387007: Cannot install from existing config
    
sophie.sk’s picture

Status: Needs review » Fixed

Thanks for spotting and fixing this :)

made a small change for coding standards, and committed! (apologies - I forgot to give you credit for the change.)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.