Eduardo Fuerte
asked on
Could you point how to workaround this issue when Magento is doing a readiness check?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Version 2.3 supports PHP up to 7.3:
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
ASKER
Amazing Magento-CE-2.2.5, relatively recent, asking a so deprecated extension as mcrypt
Hi,
There are several changes from PHP 7.2, note some third party script may not be compatible too.
If you have a lot of custom code and modules you may want to check if this is compatible prior the update
You can scan and get the result using PHPCodeSniffer with PHPCompatibility
It is a lot more easier to scan using Linux
https://www.experts-exchange.com/questions/29152482/How-to-set-and-use-PHPCodeSniffer-with-PHPCompatibility.html?anchorAnswerId=42912921#a42912921
You can also read the documentation about the changes
https://www.php.net/manual/en/migration72.php
Some errors won't be catch so you may also want to display PHP errors during your tests.
There are several changes from PHP 7.2, note some third party script may not be compatible too.
If you have a lot of custom code and modules you may want to check if this is compatible prior the update
You can scan and get the result using PHPCodeSniffer with PHPCompatibility
It is a lot more easier to scan using Linux
https://www.experts-exchange.com/questions/29152482/How-to-set-and-use-PHPCodeSniffer-with-PHPCompatibility.html?anchorAnswerId=42912921#a42912921
You can also read the documentation about the changes
https://www.php.net/manual/en/migration72.php
Some errors won't be catch so you may also want to display PHP errors during your tests.
The mcrypt extension is only necessary for PHP 5 and below. It only wanted it because it didn't detect your PHP version.
ASKER
But accordingly with the question's picture PHP version looks to be detected....
It knows that your version is PHP 7.2 but that wasn't the required version of PHP for Magento 2.2.
Magento 2.2 was looking SPECIFICALLY for PHP 7.0 or 7.1. Since it didn't find that, it thought you might be using an unsupported/early version and looked for mcrypt.
Magento 2.2 was looking SPECIFICALLY for PHP 7.0 or 7.1. Since it didn't find that, it thought you might be using an unsupported/early version and looked for mcrypt.
Hi,
You can downgrade the PHP version or update Magento and all related third party or custom script.
You can downgrade the PHP version or update Magento and all related third party or custom script.
You have 2x choices.
1) Upgrade Magento.
2) Downgrade PHP.
1) Upgrade Magento.
2) Downgrade PHP.
ASKER
Well
In the meanwhile I used a 1.9.10 Magento with PHP 7.0.31 and it runs fine.
I'm upgrading magento.
In the meanwhile I used a 1.9.10 Magento with PHP 7.0.31 and it runs fine.
I'm upgrading magento.
Likely upgrade path will be to upgrade Magento to latest, then upgrade PHP to latest.
This should work.
This should work.
ASKER
ASKER
Thank you for the help!!!
You're welcome!
PHP Tip: PHP-7.3.10.1 fixes a variety of problem which exist in PHP-7.2.6, so might be useful for you to add updating to latest PHP to your task list.
Also, PHP-7.4 will release shortly, so this might be a target also, as soon as Magento support exists for this PHP version.
PHP Tip: PHP-7.3.10.1 fixes a variety of problem which exist in PHP-7.2.6, so might be useful for you to add updating to latest PHP to your task list.
Also, PHP-7.4 will release shortly, so this might be a target also, as soon as Magento support exists for this PHP version.
ASKER
I'm using: Magento-CE-2.2.5 I had installed it at about 01 year ago. I will look for a more recent version so.