Patternkit Media Library Fails To Install

Created on 11 January 2023, almost 2 years ago
Updated 2 February 2023, almost 2 years ago

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

πŸ› Bug report
Status

Fixed

Version

9.1

Component

Module Core

Created by

πŸ‡ΊπŸ‡ΈUnited States slucero Arkansas

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.

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

  • Status changed to Fixed almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States slucero Arkansas

    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"
                }
            }
    
Production build 0.71.5 2024