Solved: Composer detected issues in your platform

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) were launched few days ago, on 26th November, 2020.


WordPress Website Transfer


 

Is PHP 7.0 still supported?

No. PHP 7.0 is not supported anymore. In fact, if your cPanel have one of these old PHP versions (PHP 5.6, 7.0, 7.1, and 7.2), you should update them immediately. These versions are marked as “End of life”, meaning that these versions are no longer security supported and could be exposed to unpatched security vulnerabilities.

You can find on Google a lot of resources regarding the old versions of the PHP. Just type “PHP 7.0.33 vulnerabilities” or “PHP 7.0.33 exploit db” and you will find a lot of answers.

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.

What is PHP 8.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.

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 PHP 7.4 ).
3. Clean your browser’s cache and try to access it.

In 2021, many hosting services already provide PHP 8.0.0. As I told you, I prefer a stable version, so the PHP 7.4 seems to be the perfect candidate this year. Of course, like any other enthusiast, I tested the PHP 8.0.0 on a few WordPress development projects, and I haven’t any problem resulted from the tests. But I recommend you to wait another few months before updating to the last PHP version, because everything will be stable in the short future.

If you have troubles, contact me.

Let me know if it works.

All the best!

Previous Post
How to remove ShareThis from WordPress
Next Post
8 Must-Have WordPress Plugins and Features in 2021

Solved: Composer detected issues in your platform

Your Composer dependencies require a PHP version

Die WordPress-Website ist nicht erreichbar? Lassen Sie uns herausfinden, wie Sie dieses Problem lösen können.

Wenn Sie die folgende Meldung erhalten: “Ihre Composer-Abhängigkeiten erfordern eine 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

oder eine ähnliche Meldung wie die obige:

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 5.6.40.

Aus dieser Meldung geht hervor, dass Ihre PHP-Version nicht mit den Mindestanforderungen Ihrer aktuellen Plugin-Version übereinstimmt. Sie müssen also Ihre PHP-Version in Ihrem cPanel aktualisieren. 7.2.0 ist nicht die neueste Version von PHP. Die letzte PHP-Version (PHP 8) wurde vor wenigen Tagen, am 26. November 2020, eingeführt.


WordPress-Website übertragen


 

Wird PHP 7.0 noch unterstützt?

Nein. PHP 7.0 wird nicht mehr unterstützt. Wenn Ihr cPanel eine dieser alten PHP-Versionen (PHP 5.6, 7.0, 7.1 und 7.2) enthält, sollten Sie diese sofort aktualisieren. Diese Versionen sind als “End of life” gekennzeichnet, was bedeutet, dass diese Versionen nicht mehr von der Sicherheit unterstützt werden und nicht gepatchte Sicherheitslücken aufweisen können.

Bei Google finden Sie eine Vielzahl von Ressourcen zu den alten PHP-Versionen. Geben Sie einfach “PHP 7.0.33 vulnerabilities” oder “PHP 7.0.33 exploit db” ein und Sie werden eine Menge Antworten finden.

Goldener Tipp: Wenn Sie die Möglichkeit haben, auf PHP 8 zu aktualisieren, tun Sie es nicht vor Februar oder März 2021. Sie sollten auf eine stabile Version des WordPress CMS, des Themes und der Plugins warten.

Was ist PHP 8.0?

Laut php.net handelt es sich bei PHP 8.0 um eine umfassende Aktualisierung der PHP-Sprache.
Es enthält viele neue Funktionen und Optimierungen, darunter benannte Argumente, Union-Typen, Attribute, Beförderung von Konstruktoreigenschaften, Match-Ausdruck, Nullsafe-Operator, JIT sowie Verbesserungen des Typsystems, der Fehlerbehandlung und der Konsistenz.

Um das Problem zu lösen, führen Sie die folgenden Schritte aus:

1. Machen Sie ein Backup Ihrer Website. Ernsthaft!
2. Gehen Sie zu cPanel -> PHP Version auswählen -> Aktuelle PHP Version ( ändern Sie auf PHP 7.4 ).
3. Leeren Sie den Cache Ihres Browsers und versuchen Sie, auf die Website zuzugreifen.

Im Jahr 2021 bieten viele Hosting-Dienste bereits PHP 8.0.0 an. Wie ich schon sagte, bevorzuge ich eine stabile Version, so dass PHP 7.4 der perfekte Kandidat für dieses Jahr zu sein scheint. Natürlich habe ich, wie jeder andere Enthusiast auch, PHP 8.0.0 an einigen WordPress-Entwicklungsprojekten getestet, und die Tests haben keine Probleme ergeben. Aber ich empfehle Ihnen, noch ein paar Monate zu warten, bevor Sie auf die letzte PHP-Version aktualisieren, denn in naher Zukunft wird alles stabil sein.

Wenn Sie Probleme haben, wenden Sie sich an mich.

Lassen Sie mich wissen, ob es funktioniert.

Alles Gute!

Previous Post
How to remove ShareThis from WordPress
Next Post
8 Must-Have WordPress Plugins and Features in 2021