Cant enable installed module with "drush en" on Drupal 8.9.4

Created on 9 November 2020, over 3 years ago
Updated 23 December 2023, 6 months ago

Problem/Motivation

Enabling module with drush is failing. Some sort of circular reference preventing installation of this module to Drupal 8.9.4 site.

Appears to work with errors (separate issue) if i enable from the ui.

Steps to reproduce

bash-5.0#  composer require 'drupal/x_frame_options:1.x-dev@dev'
No composer.json in current directory, do you want to use the one at /var/www/html? [Y,n]? y
The "hirak/prestissimo" plugin (installed globally) was skipped because it requires a Plugin API
version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run
composer update with the "--no-plugins" option.
./composer.json has been updated
The "hirak/prestissimo" plugin (installed globally) was skipped because it requires a Plugin API
version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run
composer update with the "--no-plugins" option.
Running composer update drupal/x_frame_options
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking drupal/x_frame_options (dev-1.x 02a920c)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Syncing drupal/x_frame_options (dev-1.x 02a920c) into cache
  - Installing drupal/x_frame_options (dev-1.x 02a920c): Cloning 02a920ce31 from cache
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Generating autoload files
29 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
bash-5.0# drush en x_frame_options

In PmCommands.php line 253:

  Unable to install modules x_frame_options due to missing modules x_frame_options.


pm:enable [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--druplicon]
[--notify] [--xh-link XH-LINK] [--] <command> [<modules>]...

Proposed resolution

enable installation for 8.9.4+ and composer 2.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Syntapse

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.

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    The convention is to align project name and module name, and it's very rare to not follow that, and I can't remember seeing a module on drupal.org which doesn't follow this.

    Perhaps you could consider streamlining the module, and use x_frame_options everywhere??

Production build 0.69.0 2024