Problem/Motivation

When attempting to install the patternkit_media_library module for the first time using the Beta 6 release, the process fails with the following output:

❯ drush en patternkit_media_library -yIn RouteProvider.php line 206:
                                                             
  Route "patternkit.settings.media_library" does not exist.  
                                                             Failed to run drush en patternkit_media_library -y: exit status 1

Steps to reproduce

  1. Install a fresh Drupal 9 site
  2. Download the Patternkit Beta 6 release
  3. Attempt to enable the patternkit_media_library module
  4. Observe failure

Proposed resolution

The hook_requirements checks added in #3324889: Media Selection Errors Without Media Type Configuration In Place seem to be failing during the install step due to the settings not yet being defined and the route referenced in the message not being registered yet. To circumvent this, this update hook should bypass these checks during the module installation phase.

Remaining tasks

  • Code review
  • Testing

User interface changes

None

API changes

None

Data model changes

None

Issue fork patternkit-3332780

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

slucero created an issue. See original summary.

slucero’s picture

Status: Active » Needs review
slucero’s picture

Tests seem to be failing due to deprecation warnings and the field_ui module not being installed just like in #3327185: Pattern Rendering Creates Excessive Twig String Template Cache Files. The fixes for this are already incorporated there, so once it is merged these issues should be resolved.

slucero’s picture

Status: Needs review » Reviewed & tested by the community

Tested internally at Red Hat and confirmed functional.

  • slucero committed 05751c5d on 9.1.x
    Issue #3332780 by slucero: Patternkit Media Library Fails To Install
    
slucero’s picture

Status: Reviewed & tested by the community » Fixed

Merged for inclusion in the beta 7 release.

Status: Fixed » Closed (fixed)

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

slucero’s picture

I'm attaching a patch file for easy inclusion in Composer files in case anyone needs it.

        "patches": {
            "drupal/patternkit": {
                "#3332780: Patternkit Media Library Fails To Install": "https://www.drupal.org/files/issues/2023-02-02/patternkit-3332780--patternkit_media_library-fails-to-install--6.patch"
            }
        }