Composer incompatibility

Created on 16 June 2023, over 1 year ago
Updated 17 June 2023, over 1 year ago

When running composer update, I get the following error:

Fatal error: Declaration of Drupal\Console\Composer\Plugin\Installer::getLocationPattern($frameworkType) must be compatible with Composer\Installers\Installer::getLocationPattern(string $frameworkType): string in /home/solution/.composer/vendor/drupal/console-extend-plugin/src/Installer.php on line 48

Our installation:
Drupal 9.5.9
PHP 8.1.17
Composer version 2.5.8

I have seen the similar issue www.drupal.org/project/drupal/issues/3352298 πŸ’¬ Plugin incompatible with Composer 2.5.5 Fixed , but that issue includes the installation of Drupal Console, which we do not have installed.
Furthermore, our installation is not on Drupal 10, but 9.5.9. For this reason we opened a new issue.

πŸ’¬ Support request
Status

Closed: outdated

Version

9.5

Component
ComposerΒ  β†’

Last updated 4 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States platinum1

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

Comments & Activities

  • Issue created by @platinum1
  • πŸ‡ΊπŸ‡ΈUnited States platinum1

    This is the composer.json file

    {
    "name": "drupalcommerce/project-base",
    "description": "Commerce 2.x project template",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "authors": [
    {
    "name": "",
    "role": ""
    }
    ],
    "repositories": {
    "drupal": {
    "type": "composer",
    "url": "https://packages.drupal.org/8"
    },
    "commerce_base": {
    "type": "vcs",
    "url": "https://github.com/drupalcommerce/commerce_base"
    },
    "asset-packagist": {
    "type": "composer",
    "url": "https://asset-packagist.org"
    }
    },
    "config": {
    "bin-dir": "bin",
    "sort-packages": true,
    "allow-plugins": {
    "composer/installers": true,
    "cweagans/composer-patches": true,
    "drupal/core-composer-scaffold": true,
    "zaporylie/composer-drupal-optimizations": true,
    "dealerdirect/phpcodesniffer-composer-installer": true,
    "simplesamlphp/composer-module-installer": true,
    "oomphinc/composer-installers-extender": true,
    "drupal/core-project-message": true
    }
    },
    "require": {
    "ext-curl": "*",
    "composer/installers": "^2.1",
    "cweagans/composer-patches": "^1.7",
    "drupal/addtoany": "^1.0",
    "drupal/admin_toolbar": "^3.0",
    "drupal/advagg": "^6.0",
    "drupal/ajax_add_to_cart": "^2.0",
    "drupal/allowed_formats": "^2.0",
    "drupal/amp": "3.x-dev@dev",
    "drupal/antibot": "^2.0",
    "drupal/bee_hotel": "^2.14@alpha",
    "drupal/blazy": "^2.0",
    "drupal/block_field": "^1.0",
    "drupal/block_visibility_groups": "^2.0",
    "drupal/bootstrap": "^3.0",
    "drupal/bootstrap_paragraphs": "^2.0",
    "drupal/calendar": "^1.0",
    "drupal/captcha": "^1.2",
    "drupal/checklistapi": "^2.0",
    "drupal/cloudflare": "^2.0",
    "drupal/coffee": "^1.0",
    "drupal/color": "^1.0",
    "drupal/colorbox": "^2.0",
    "drupal/commerce": "^2.2",
    "drupal/commerce_paypal": "^1.0",
    "drupal/commerce_saferpay": "^1.1",
    "drupal/config_update": "^1.7",
    "drupal/contact_formatter": "^2.0",
    "drupal/contact_storage": "^1.1",
    "drupal/core": "^9.5",
    "drupal/core-composer-scaffold": "^9.5",
    "drupal/core-project-message": "^9.5",
    "drupal/core-recommended": "^9.5",
    "drupal/crop": "^2.0",
    "drupal/css_editor": "^2.0",
    "drupal/ctools": "^3.7",
    "drupal/currency": "^3.0",
    "drupal/diff": "^1.0",
    "drupal/dynamic_entity_reference": "^2.0",
    "drupal/easy_breadcrumb": "^2.0",
    "drupal/editor_advanced_link": "^2.0",
    "drupal/entity_browser": "^2.6",
    "drupal/entity_clone": "^1.0",
    "drupal/entity_reference_facet_link": "^2.0",
    "drupal/entity_reference_revisions": "^1.9",
    "drupal/entity_usage": "^2.0",
    "drupal/exchange_rates": "^1.3",
    "drupal/facebook_pixel": "^2.0",
    "drupal/facets": "^2.0",
    "drupal/fast_404": "^2.0",
    "drupal/field_group": "^3.2",
    "drupal/field_timer": "^1.0",
    "drupal/flag": "^4.0",
    "drupal/focal_point": "^1.5",
    "drupal/fontawesome": "^2.0",
    "drupal/fullcalendar_library": "^1.1",
    "drupal/geocoder": "^3.2",
    "drupal/geofield": "^1.3",
    "drupal/geolocation": "^3.7",
    "drupal/geophp": "^1.0",
    "drupal/google_analytics": "^4.0",
    "drupal/honeypot": "^2.0",
    "drupal/hreflang": "^1.5",
    "drupal/iframe": "^2.0",
    "drupal/imagemagick": "^3.2",
    "drupal/imce": "^2.4",
    "drupal/inline_entity_form": "^1.0",
    "drupal/jquery_colorpicker": "^2.0",
    "drupal/jquery_ui_datepicker": "^2.0",
    "drupal/juicebox": "^4.0",
    "drupal/linkit": "^5.0",
    "drupal/mailsystem": "^4.3",
    "drupal/media_entity_browser": "^2.0",
    "drupal/metatag": "^1.0",
    "drupal/module_filter": "^3.2",
    "drupal/office_hours": "^1.7",
    "drupal/paragraphs": "^1.0",
    "drupal/pathauto": "^1.8",
    "drupal/pdf": "^1.1",
    "drupal/plugin": "^2.0",
    "drupal/purge": "^3.0",
    "drupal/rabbit_hole": "^1.0",
    "drupal/rdfui": "^1.0",
    "drupal/redirect": "^1.6",
    "drupal/scheduler": "^1.4",
    "drupal/schema_metatag": "^2.2",
    "drupal/search404": "^2.0",
    "drupal/search_api": "^1.0",
    "drupal/seckit": "^2.0",
    "drupal/security_review": "^2.0",
    "drupal/services": "^4.0",
    "drupal/simple_sitemap": "^4.0",
    "drupal/simple_social_icons": "^3.0",
    "drupal/simplenews": "^3.3",
    "drupal/simplesamlphp_auth": "^3.3",
    "drupal/sitemap": "^2.0",
    "drupal/social_media_links": "^2.8",
    "drupal/sophron": "^1.0",
    "drupal/superfish": "^1.0",
    "drupal/symfony_mailer": "^1.3",
    "drupal/telephone_validation": "^2.2",
    "drupal/token": "^1.0",
    "drupal/unlimited_number": "^2.0",
    "drupal/vendor_stream_wrapper": "^2.0",
    "drupal/veoa": "^2.0",
    "drupal/video_embed_field": "^2.4",
    "drupal/views_advanced_routing": "^2.0",
    "drupal/views_bootstrap": "^4.3",
    "drupal/viewsreference": "^2.0",
    "drupal/webform": "^6.2",
    "drupal/webform_views": "^5.1",
    "drupal/webp": "^1.0",
    "drupal/weight": "^3.0",
    "drupal/whatsapp_bubble": "^1.0",
    "drupal/yoast_seo": "2.x-dev@dev",
    "drupalcommerce/commerce_base": "9.x-dev",
    "drush/drush": "^11.0",
    "easyrdf/easyrdf": "1.0.0-rc.1 as 0.9.1",
    "swiftmailer/swiftmailer": "^6.0",
    "vlucas/phpdotenv": "^5.1",
    "webflo/drupal-finder": "^1.2",
    "webmozart/path-util": "^2.3"
    },
    "require-dev": {
    "drupal/core-dev": "^9.5.0"
    },
    "conflict": {
    "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "autoload": {
    "classmap": [
    "scripts/composer/ScriptHandler.php"
    ]
    },
    "scripts": {
    "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
    "pre-install-cmd": [
    "DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
    ],
    "pre-update-cmd": [
    "DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
    ],
    "post-install-cmd": [
    "DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
    ],
    "post-update-cmd": [
    "DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
    ]
    },
    "extra": {
    "composer-exit-on-patch-failure": true,
    "patchLevel": {
    "drupal/core": "-p2"
    },
    "drupal-scaffold": {
    "locations": {
    "web-root": "web/"
    }
    },
    "installer-types": [
    "bower-asset",
    "npm-asset"
    ],
    "installer-paths": {
    "web/core": [
    "type:drupal-core"
    ],
    "web/libraries/{$name}": [
    "type:drupal-library",
    "type:bower-asset",
    "type:npm-asset"
    ],
    "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"
    ]
    },
    "patches": {
    "drupal/advagg": {
    "Drupal advagg CkEditor patch": " https://www.drupal.org/files/issues/2022-09-19/3310388-2.patch β†’ "
    }
    }
    }
    }

  • Status changed to Postponed: needs info over 1 year ago
  • It looks like you have Drupal Console or it’s plugin installed into Composer globally.

    /home/solution/.composer/vendor/drupal/console-extend-plugin/src/Installer.php is not part of the Drupal site.

  • πŸ‡ΊπŸ‡ΈUnited States platinum1

    @cilefen Thank you for pointing out the obvious. Sometimes you can't see the wood for the trees...

  • Status changed to Closed: outdated over 1 year ago
Production build 0.71.5 2024