Skip to content

Frontend PHP error after 2.4.5 to 2.4.5-p1

Have a site on 2.4.5, upgraded relatively recently. Upgraded to 2.4.5-1 this morning and on the front end it’s now saying “Magento supports PHP 7.4.0 or later. Please read Magento System Requirements. “

Commands I ran were as follows:

php bin/magento maintenance:enable

php composer.phar require magento/product-community-edition 2.4.5-p1 --no-update

php composer.phar update --with-all-dependencies (needed to update composer.json for magento framework before this but otherwise it's the same composer.json as was already there)

php bin/magento setup:upgrade ;

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f;

php bin/magento cache:clean

php bin/magento cache:flush

php bin/magento indexer:reindex

php bin/magento --version - 2.4.5-p1

php bin/magento maintenance:disable

It was already on php 8.1. Looking in CPanel, it’s still on 8.1. php-v gives 8.1.7. Any ideas? There were no PHP errors when all the commands were running. Apart from having to update magento framework there were no errors at all except for usualy deprecated stuff.