Your Composer dependencies require a PHP version
WordPress site is down? Let’s find how to solve this issue.
If you got the following message: “Your Composer dependencies require a PHP version”
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 7.0.33. Your Composer dependencies require the following PHP extensions to be installed: bcmath
or a similar message to the one above:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 5.6.40.
From this message we understand that your PHP version is not corresponding with the minimum requirements of your actual plugin version. So, you need to upgrade your PHP version from your cPanel. The 7.2.0 is not the newest version of PHP. The last PHP version (PHP 8.0.0) were launched few days ago, on 26th November, 2020. Golden tip: If you have the opportunity to upgrade to PHP 8, don’t do it until February or March, 2021. You should wait for a stable version of the WordPress CMS, theme and plugins.
Read more: SECURE WORDPRESS SITE in 2021
What is PHP 8.0.0?
According to php.net, PHP 8.0 is a major update of the PHP language.
It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency.
All the best!
In order to solve this, do the following steps:
1. Do a backup of your website. Seriously!
2. Go to cPanel -> Select PHP Version -> Current PHP version ( change to 7.2.0 ).
3. Clean your browser’s cache and try to access it.
If you have troubles, contact me.
Let me know if it works.
All the best!