Plesk

Unable to open Plesk PHP Composer extension on the domain level: plesk/composer-command-info contains a Composer plugin which is blocked by your allow-plugins config

Symptoms

In an attempt to access PHP Composer page in Plesk > Domains > example.com, the process fails with the error:

plesk/composer-command-info contains a Composer plugin which is blocked by your allow-plugins config.
You may add it to the list if you consider it safe. You can run "composer config --no-plugins allow-plugins.plesk/composer-command-info [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false)
See https://getcomposer.org/allow-plugins

Cause

Product issue:

  • #EXTPHPCOMP-202 "The extension no longer fails while updating an integration plugin."
    Fixed in:

Resolution

Please consider updating the PHP Composer extension:

Workaround

In case the issue persist after updating the PHP Composer extension to its latest while the Composer engine version is 2.3.9 or higher:

In the meantime or if the PHP Composer extension cannot be updated by some reason, apply the following:

Workaround

  1. Log into Plesk.
  2. Go to Domains > example.com > File Manager.
  3. Open composer.json file in Home Directory > .composer:
  4. Change the file content from:

    {
    "require": {
    "plesk/composer-command-info": "~1.1.0"
    }
    }

    To

    {
    "require": {
    "plesk/composer-command-info": "~1.1.0"
    },
    "config": {
    "allow-plugins": {
    "plesk/composer-command-info": true
    }
    }
    }

  5. Press the Save button.