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
- Install a fresh Drupal 9 site
- Download the Patternkit Beta 6 release
- Attempt to enable the patternkit_media_library module
- 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
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | patternkit-3332780--patternkit_media_library-fails-to-install--6.patch | 6.18 KB | slucero |
Issue fork patternkit-3332780
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
Comment #3
sluceroComment #4
sluceroTests 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.
Comment #5
sluceroTested internally at Red Hat and confirmed functional.
Comment #7
sluceroMerged for inclusion in the beta 7 release.
Comment #9
sluceroI'm attaching a patch file for easy inclusion in Composer files in case anyone needs it.