WordPress itself is delivered without composer scripts. The problem you are experiencing is probably caused by a plugin you are using that provides the composer scripts incorrectly – namely, depending on PHP versions.
I see the following options for you:
- Set the PHP version in your hosting to 8.1 or newer. Immediately afterwards, the page should load normally again if there are no other errors. Your host’s support team can help you change the PHP version.
- Or deactivate all plugins via FTP by renaming the directory /
wp-content/plugins/. Your host’s support team can help you connect via FTP. After deactivation, the backend should work again and you can move the plugins back one by one until you find the culprit – you should leave this plugin deactivated and then contact its support forum.
Hi 🙂 The moderator is right that this is not coming from WordPress core itself.
WordPress doesn’t use Composer, so this message is almost always caused by a plugin or custom code that ships with Composer dependencies.
The key part of your error is:
“require a PHP version >= 8.1.0”
So first thing to check:
1) Make sure your hosting PHP version is 8.1 or higher
(cPanel → PHP selector / Hosting panel)
If you’re already on 8.1+ and still seeing the error:
2) One of your plugins likely bundles Composer packages that require PHP 8.1+
Try temporarily deactivating plugins (rename /wp-content/plugins via FTP) and enable them one by one to find the culprit.
Once you find it, either update or replace that plugin. Hope this helps 👍