If your WordPress site suddenly shows “There has been a critical error on this website” and the error log says Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.3.0", a plugin or theme was built for a newer PHP than the one your site runs.
It usually shows up right after a plugin update, a theme update, or a restore/migration to a server with an older default PHP. As of 2026-11-25 there is a fresh support forum thread where it appeared after restoring an UpdraftPlus backup on a different server.
WordPress core does not use Composer. The message comes from a plugin or theme that ships its own vendor/ folder. The fix is either a newer PHP version or a different version of that plugin.
What the full error looks like
There are two variants. The first one is about the PHP version:
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.3.0". You are running 8.2.x.
The second one is about missing PHP extensions, for example:
Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: mbstring
Both are thrown by a file called vendor/composer/platform_check.php that Composer generates inside the plugin. It runs as soon as the plugin loads its autoloader, before any of the plugin code, and stops PHP if the server does not match.
If you only see the critical error screen, turn on logging first. Add this to wp-config.php above the “That’s all, stop editing!” line, reload the page, and read wp-content/debug.log:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

If the log file does not appear, see debug.log not created in WordPress.
Step 1. Find the plugin or theme that throws it
The log line often includes the full path, like wp-content/plugins/some-plugin/vendor/composer/platform_check.php. The folder after plugins/ or themes/ is your culprit.
If the path is not there, search every plugin and theme for a platform check that asks for a PHP version. Run this over SSH from the WordPress root:
find wp-content/plugins wp-content/themes wp-content/mu-plugins \
-path '*vendor/composer/platform_check.php' \
-exec grep -Ho 'require a PHP version "[^"]*"' {} \;
Each line of output is one plugin or theme and the minimum PHP it asks for. The one with a version higher than your server’s PHP is the one breaking the site. No output means none of them check the PHP version, so look at the extension variant of the error instead.
💡 A plugin can bundle other packages with their own vendor/ folders, so you may see two lines for one plugin. The highest requirement wins.
Step 2. Check which PHP version the website really runs
This is where most people get confused. The PHP you get in SSH (php -v or WP-CLI) is the CLI binary, and it is often a different version from the PHP-FPM or LiteSpeed handler that serves the website.
Trust the error message itself: “You are running 8.2.x” is the version the web request used. If wp-admin still loads, Tools → Site Health → Info → Server shows the same thing. Your hosting control panel shows the version set for the domain.
That mismatch also explains why wp plugin list can work fine in the terminal while the site is down. WP-CLI runs on the newer CLI PHP and passes the check.
Step 3. Get the site back online
If you need the site up before you can change PHP, deactivate the plugin by renaming its folder. Replace some-plugin with the folder you found in Step 1:
mv wp-content/plugins/some-plugin wp-content/plugins/some-plugin.off
WordPress deactivates a plugin it can no longer find, and the front end should load again. If it is the active theme, WordPress falls back to a default theme when one is installed. No SSH? The same rename works in FTP or the file manager, as shown in disable WordPress plugins via FTP or phpMyAdmin.
Step 4. Fix it for real: upgrade PHP
The proper fix is to switch the domain to a PHP version at or above the one in the error. As of 2026-11-25 the WordPress hosting handbook recommends PHP 8.4 or later for production, so jumping straight to 8.4 is a good move if your other plugins support it.
Before you switch, back up the files and the database, then check the rest of your plugins against the new version. I covered how to scan plugins for PHP compatibility in PHP 8.6 is out: is WordPress compatible?, and the same approach works for any target version.
In cPanel you change it in MultiPHP Manager (or “Select PHP Version” on CloudLinux). In OpenPanel it is under PHP → Select PHP Version: pick the version in the dropdown next to the domain and save, and OpenPanel updates and reloads that domain’s web server config. On OpenLiteSpeed/LiteSpeed it is not set per domain, so you change the Default PHP Version instead. A server admin can also do it from the shell:
opencli php-domain example.com --update 8.4
For the extension variant, install or enable the listed extension (mbstring, intl, sodium and so on) for the same PHP version the site uses. Enabling it only for the CLI does nothing for the website.
Then rename the plugin folder back and reactivate it:
mv wp-content/plugins/some-plugin.off wp-content/plugins/some-plugin
wp plugin activate some-plugin
WP-CLI should print a success line for the activation. Reload the site and confirm the error is gone from debug.log.
Can’t upgrade PHP? Roll the plugin back
If the host is stuck on an old PHP, install the last plugin version that supported it. For plugins from WordPress.org, check the “Requires PHP” line in the changelog or readme, then:
wp plugin install some-plugin --version=1.2.3 --force
Replace 1.2.3 with the older version. Then turn off auto-updates for that plugin so it does not update itself into the same error tonight:
wp plugin auto-updates disable some-plugin
Treat this as temporary. Old plugin versions stop getting security fixes, so plan the PHP upgrade anyway.
Why deleting platform_check.php is a bad idea
You will find advice to delete platform_check.php or set "platform-check": false in composer.json. The Composer docs confirm that false stops Composer from generating and requiring that file, and the default php-only checks only the PHP version.
But the check is not the problem. It is a warning that the plugin’s code uses PHP features your server does not have. Remove it and you usually trade a clear message for a parse error or “Call to undefined function” somewhere deeper, sometimes only on one page or one checkout step.
Editing files inside a plugin’s vendor/ folder also gets wiped on the next update. Leave it alone and fix the PHP version.
Stop it from happening after the next migration
Before you restore a backup or move a site, write down the PHP version and the loaded extensions on the old server (php -m for the CLI, Site Health for the web). Set the new domain to the same or newer version before you import anything.
💡 If you manage many sites, run the find command from Step 1 before a PHP downgrade or a server move. It lists every plugin that would break.
If the site still shows a critical error after the PHP upgrade, it is a different fatal error. Go through there has been a critical error on this website next.
TL;DR: “Composer detected issues in your platform” means a plugin or theme needs a newer PHP (or an extension) than your site runs. Find it with the find command, rename its folder to bring the site back, then switch the domain to the PHP version from the error, or roll the plugin back until you can.

