Symptoms
-
Cannot log into Plesk with the following error:
CONFIG_TEXT: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".
-
The following error is being output to the panel.log:
CONFIG_TEXT: [2022-10-21 11:33:18.591] ERR [panel] PHP User Error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.16.; File: /usr/local/psa/admin/plib/modules/monitoring/vendor/composer/platform_check.php, Line: 24
-
Old Plesk version (e.g. 18.0.34) is in use.
Cause
Product issue:
-
#EXTPLESK-4019 "Logging in to Plesk Obsidian 18.0.35 and earlier with Plesk Monitoring 2.4.0 installed no longer fails with the “Your Composer dependencies require a PHP version >= 7.4.0” error."
Fixed in:- Monitoring 2.4.1 21 October 2022
- Monitoring 2.4.0 20 October 2022
Resolution
Workaround
If update is not possible for some reason you may try the following
Update Plesk Monitoring extension using command-line interface to the latest version.
If update is not possible, disable the extension as a workaround :
-
Connect to the server via SSH.
-
Disable the extension:
# plesk bin extension --disable monitoring
Comments
9 comments
This does not apply. I don't have any monitoring installed. This was fine a few days ago, just started without any human intervention. Why Plesk is doing backgrond thinks and fsck up servers?
plesk bin extension --list
advisor - Advisor
bacula4hosts - Module bacula4hosts
configurations-troubleshooter - Webserver Configurations Troubleshooter
dropbox-backup - Dropbox Backup
git - Git
heavy-metal-skin - Skins and Color Schemes
letsencrypt - Let's Encrypt
log-browser - Mail Log Browser
monitoring - Monitoring
nodejs - Node.js
panel-ini-editor - Panel.ini Editor
panel-migrator - Plesk Migrator
plesk-cagefs - CageFS
plesk-lvemanager - CloudLinux Manager
rblcheckmaster - RBL Check (Linux)
repair-kit - Repair Kit
revisium-antivirus - ImunifyAV
servershield - ServerShield by Cloudflare
sslit - SSL It!
wp-toolkit - WordPress Toolkit
I have disabled all extensions and still get the same error:
[2023-05-23 01:49:06.435] ERR [panel] PHP User Error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.22.; File: /usr/local/psa/admin/plib/modules/catalog/vendor/composer/platform_check.php, Line: 24
Any workaround?
Same issue!
I tried disabling monitoring but didnt work. I am using older version of Plesk. Unable to update plesk due to some versioning issue. Anyone can help?
Same issue!
i have ubuntu 16.04 and plesk 18.0.34
plesk bin extension --list
advisor - Advisor
configurations-troubleshooter - Webserver Configurations Troubleshooter
firewall - Firewall
letsencrypt - Let's Encrypt
panel-migrator - Plesk Migrator
repair-kit - Repair Kit
revisium-antivirus - ImunifyAV
slave-dns-manager - Slave DNS Manager
sslit - SSL It!
sucuri-scanner - Sucuri Security Scanner
watchdog - Watchdog
wp-toolkit - WordPress Toolkit
Please help
I fixed from https://talk.plesk.com/threads/composer-dependencies-require-on-plesk.366797/
Open /usr/local/psa/admin/plib/modules/catalog/vendor/composer/platform_check.php
Edit (change the 4 with 1)
if (!(PHP_VERSION_ID >= 70400)) {
into:
if (!(PHP_VERSION_ID >= 70100)) {
Same here... We got a ton of support tickets, emails and phone calls about this issue... And I can only hope that Plesk will resolve this asap.
The issue with /usr/local/psa/admin/plib/modules/catalog/vendor/composer/platform_check.php is separate and is not related to monitoring extension. It should be fixed by now. Please look at the following article for details:
https://support.plesk.com/hc/en-us/articles/14778146184727
For us it was letsencrypt in version 3.1.13-870
change 80002 to 70400 in
/usr/local/psa/admin/plib/modules/letsencrypt/vendor/composer/platform_check.php
letsencrypt works just fine after this.
I got this error today (again). Here's my fix:
in file
/usr/local/psa/admin/plib/modules/sectigo/vendor/composer/platform_check.php
change
to
After that I could login into my Plesk panel again.
Modifying the platform_check.php worked for us but in the following folder as directly above --> /usr/local/psa/admin/plib/modules/sectigo/vendor/composer
We are on Obsidian 18.0.30 in case that helps anyone else.
We did try the work around, but we don't have monitoring installed.
Please sign in to leave a comment.