Articles in this section

Cannot log into Plesk: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".

kb: bug kb: fixed

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:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

Update Plesk Monitoring extension using command-line interface to the latest version.

 

If update is not possible, disable the extension as a workaround :

  1. Connect to the server via SSH.

  2. Disable the extension:

    # plesk bin extension --disable monitoring

Was this article helpful?

Comments

9 comments
Date Votes
  • 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?

    1
  • 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?

    0
  • 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

    0
  • 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)) {

    3
  • 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.

    0
  • 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

    0
  • 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.

    0
  • 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 

    if (!(PHP_VERSION_ID >= 70400)) {

    to

    if (!(PHP_VERSION_ID >= 70100)) {

    After that I could login into my Plesk panel again.

     

    0
  • 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.

    0

Please sign in to leave a comment.