Applicable to:
- Plesk for Linux
Symptoms
In an attempt to access PHP Composer page in Plesk > Domains > example.com, the process fails with the error:
PLESK_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:- PHP Composer 1.2.2 14 July 2022
Resolution
Workaround
Warning: The issue should have already been fixed. Create a 3rd line request instead of applying the workaround if you encounter it. (EXTPHPCOMP-202 for existing users, EXTPHPCOMP-203 for new ones.)
UPDATE: The EXTPHPCOMP-209 was confirmed: When Composer engine is >=2.3.9. (Same WA applies).
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:
- This is a product issue EXTPHPCOMP-209. "Since Composer 2.3.9 (engine) behavior of allow-plugins blocks the "Update" function", which will be fixed in future extension updates.
In the meantime or if the PHP Composer extension cannot be updated by some reason, apply the following:
- Log into Plesk.
- Go to Domains > example.com > File Manager.
- Open composer.json file in Home Directory > .composer:
- Change the file content from:
CONFIG_TEXT: {
"require": {
"plesk/composer-command-info": "~1.1.0"
}
}To
CONFIG_TEXT: {
"require": {
"plesk/composer-command-info": "~1.1.0"
},
"config": {
"allow-plugins": {
"plesk/composer-command-info": true
}
}
} - Press the Save button.
Comments
2 comments
I'm on version 1.2.2-280 but I still get this error.
Tried re-installing Composer extension but no difference...
Any ideas before I apply changes in the "Workaround"?
Same here, I've resolved by reinstalling extension and disabling composer self update task in Plesk. Extension installs composer 2.2.5 and self updates to 2.4.1 then crash.
Please sign in to leave a comment.