Can't install this module on a fresh Drupal 10

Created on 26 February 2024, 10 months ago

Problem/Motivation

Trying to install this module with composer will result in Your requirements could not be resolved to an installable set of packages.

With drupal/bee:^3.0@RC:

Problem 1
    - drupal/commerce[2.37.0, ..., 2.38.0] require drupal/inline_entity_form ^1.0@RC || ^3.0@RC -> found drupal/inline_entity_form[dev-1.x, dev-3.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x), 3.0.0-rc15, ..., 3.x-dev (alias of dev-3.x)] but it does not match your minimum-stability.
    - drupal/bee 3.0.0-rc1 requires drupal/commerce ^2.37 -> satisfiable by drupal/commerce[2.37.0, 2.38.0].
    - Root composer.json requires drupal/bee ^3.0@RC -> satisfiable by drupal/bee[3.0.0-rc1].

With drupal/bee:

Problem 1
    - Root composer.json requires drupal/bee * -> satisfiable by drupal/bee[1.0.0, 1.1.0, 1.2.0].
    - drupal/bee[1.0.0, ..., 1.2.0] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but the package is fixed to 10.2.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Steps to reproduce

New "Quick Drupal install" with DDEV, which is basically a composer create drupal/recommended-project (fresh Drupal 10.2.3 with PHP 8.1.27 and no other modules previously installed)

Proposed resolution

Add installation instructions in the module page, which comprise setting "minimum-stability": "dev", in your Drupal project (root) composer.json

This will make composer require drupal/bee result in:

  - Installing commerceguys/intl (v2.0.5): Extracting archive
  - Installing doctrine/collections (2.1.4): Extracting archive
  - Installing commerceguys/addressing (v2.2.0): Extracting archive
  - Installing drupal/address (2.0.1): Extracting archive
  - Installing drupal/fullcalendar_library (2.3.0): Extracting archive
  - Installing roomify/bat (1.4.0): Extracting archive
  - Installing rlanvin/php-rrule (v2.4.1): Extracting archive
  - Installing drupal/bat (2.1.0): Extracting archive
  - Installing drupal/bat_unit (2.1.0)
  - Installing drupal/bat_event (2.1.0)
  - Installing drupal/ctools (4.0.4): Extracting archive
  - Installing drupal/services (5.0.0-beta8): Extracting archive
  - Installing drupal/bat_fullcalendar (2.1.0)
  - Installing drupal/bat_api (3.1.0-rc2): Extracting archive
  - Installing drupal/office_hours (1.16.0): Extracting archive
  - Installing drupal/token (1.13.0): Extracting archive
  - Installing drupal/state_machine (1.10.0): Extracting archive
  - Installing drupal/entity (1.4.0): Extracting archive
  - Installing drupal/profile (1.8.0): Extracting archive
  - Installing drupal/inline_entity_form (3.0.0-rc19): Extracting archive
  - Installing drupal/entity_reference_revisions (1.11.0): Extracting archive
  - Installing drupal/commerce (2.38.0): Extracting archive
  - Installing drupal/commerce_price (2.38.0)
  - Installing drupal/commerce_store (2.38.0)
  - Installing drupal/commerce_product (2.38.0)
  - Installing drupal/commerce_number_pattern (2.38.0)
  - Installing drupal/commerce_order (2.38.0)
  - Installing drupal/bat_event_ui (2.1.0)
  - Installing drupal/bat_event_series (2.1.0)
  - Installing drupal/bat_booking (2.1.0)
  - Installing drupal/bee (3.0.0-rc1): Extracting archive

which to me looks way more than necessary. So I suggest maintainers open an issue on BAT module to remove the commerce dependency (it is a very big & unrelated module!).

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Component

Miscellaneous

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kopeboy
  • 🇮🇹Italy kopeboy Milan

    Maybe "Critical" priority is too much and only related to security? 🙃

  • 🇮🇳India Madhu Kumar M E

    HI @kopboy,

    This module is compatible only for Drupal 8 and 9 only, we can't install this module on Drupal 10 until it gets upgraded to the Drupal 10 version.

  • 🇮🇹Italy kopeboy Milan

    Module page says the opposite:

    and this issue is about Version 8.x-3.0-rc1.

    This is the installed bee.info.yml that resulted from my instructions above:

    name: Bookable Entities Everywhere
    type: module
    description: Bookable Entities Everywhere - easily make content types bookable with the BAT module.
    core: 8.x
    core_version_requirement: ^8 || ^9 || ^10
    
    package: bat
    
    dependencies:
      - bat:bat_booking
      - bat:bat_event_series
      - bat:bat_event_ui
      - office_hours:office_hours
      - commerce:commerce_order
      - commerce:commerce_product
      - commerce:commerce_store
    
    # Information added by Drupal.org packaging script on 2024-01-09
    # version: '8.x-3.0-beta2'
    # project: 'bee'
    # datestamp: 1704791625
    
    # Information added by Drupal.org packaging script on 2024-02-06
    version: '8.x-3.0-rc1'
    project: 'bee'
    datestamp: 1707238471

    Also, the problem does not end there: you can't even enable the installed module.
    drush en bee will infact result in error Missing bundle entity, entity type bat_event_series_type, entity id availability_daily.

    This issue is about version

  • Status changed to Postponed: needs info 9 months ago
  • 🇷🇴Romania alexberendei

    Are you sure there is "minimum-stability": "dev", inside your composer.json ?

  • 🇵🇰Pakistan coderider

    The same problem not able to install BEE with fresh Drupal 10.3.1

  • 🇧🇪Belgium pmichelazzo Brussels

    Also with the latest 10.3.6 core version.

    We're still in the limbo.

Production build 0.71.5 2024