Skip to content

Cannot install on PHP 8.0 Drupal 9.5.0 #4345

Open
@kburakozdemir

Description

@kburakozdemir

Cannot install on PHP 8.0 Drupal 9.5.0

Problem/Motivation

I get errors when trying to install.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/console[1.9.5, ..., 1.9.10] require alchemy/zippy ~0.4 -> satisfiable by alchemy/zippy[0.4.0, ..., 0.4.9].
    - drupal/console[1.0.0, ..., 1.9.4] require php ^5.5.9 || ^7.0 -> your php version (8.0.26) does not satisfy that requirement.
    - alchemy/zippy[0.4.0, ..., 0.4.8] require symfony/filesystem ^2.0.5|^3.0 -> found symfony/filesystem[v2.1.0, ..., v2.8.52, v3.0.0, ..., v3.4.47] but the package is fixed to v5.4.13 (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.
    - alchemy/zippy 0.4.9 requires symfony/filesystem ^2.0.5 || ^3.0 || ^4.0 -> found symfony/filesystem[v2.1.0, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.42] but the package is fixed to v5.4.13 (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.
    - Root composer.json requires drupal/console ~1.0 -> satisfiable by drupal/console[1.0.0, ..., 1.9.10].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

How to reproduce

lando composer require "drupal/console:~1.0" \   
  --prefer-dist \
  --optimize-autoloader
Drupal version   : 9.5.0                                    
Site URI         : http://default                           
DB driver        : mysql                                    
DB hostname      : database                                 
DB port          : 3306                                     
DB username      : drupal9                                  
DB name          : drupal9                                  
Database         : Connected                                
Drupal bootstrap : Successful                               
Default theme    : olivero                                  
Admin theme      : claro                                    
PHP binary       : /usr/local/bin/php                       
PHP OS           : Linux                                    
PHP version      : 8.0.26                                   
Drush script     : /app/drupal/vendor/drush/drush/drush     
Drush version    : 11.4.0                                   
Drush temp       : /tmp                                     
Drush configs    : /app/drupal/vendor/drush/drush/drush.yml 
Install profile  : standard                                 
Drupal root      : /app/drupal/web                          
Site path        : sites/default                            
Files, Public    : sites/default/files                      
Files, Temp      : /tmp    

Composer file:

{
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal 9 projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^1.9",
        "drupal/core-composer-scaffold": "^9.5",
        "drupal/core-project-message": "^9.5",
        "drupal/core-recommended": "^9.5",
        "drupal/disable_login": "^1.1",
        "drush/drush": "^11.4"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "dealerdirect/phpcodesniffer-composer-installer": true
        },
        "sort-packages": true
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            }
        },
        "installer-paths": {
            "web/core": [
                "type:drupal-core"
            ],
            "web/libraries/{$name}": [
                "type:drupal-library"
            ],
            "web/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "web/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "web/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "web/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "web/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "web/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "drupal-core-project-message": {
            "include-keys": [
                "homepage",
                "support"
            ],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",
                "  * Install the site: https://www.drupal.org/docs/installing-drupal",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions