Magento Upgrade from 2.2 to 2.4.5 - Big trouble with PHP version - magento2

I spent 1 week trying to upgrade Magento from version 2.2 to 2.4.
In order to proceed I have downloaded and I am using composer 1.
My PHP version is 7.1 - Perfectly compatible with Magento 2.2.
With composer 1 I was able to get a "composer require" without errors.
I then launched the "composer update" command but it goes into error due to the lack of php 7.4 or higher.
Now: I could also update the php and finish the "composer update" but then the "magento/upgrade" will not work because it is the one of Magento 2.2 which only works with php 7.1
Do you have solutions?
I am aspects to upgrade Magento

You have 2 solution:
1, If you dont want to upgrade magento 2.2 to magento 2.4, you can remove php7.4 and use php7.1 again.
2, Upgrade magento version to 2.4.x:
With magento <=2.4.3, you can use php7.4
With magetno >=2.4.4, you can use php8.1
Step by step to upgrade magento version you can read it here Upgrade magento version

For Magento 2.4.4, the minimum requirement of PHP version is 8.1 so you need to make sure to change the PHP version then run the composer require to upgrade.
Check the official documentation: https://devdocs.magento.com/guides/v2.4/release-notes/release-notes-2-4-0-open-source.html
https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-5.html
For upgrade process:
https://www.cloudways.com/blog/magento-2-4-upgrade/
https://devdocs.magento.com/guides/v2.4/comp-mgr/cli/cli-upgrade.html
Thanks

Related

Magento Enterprise Edition Upgrade from 2.3.5-p2 to 2.4.0 getting error

I am a newbie for the Magento enterprise edition. I am upgrading Magento 2.3.5-p2 to Magento 2.4.0 in Enterprise Edition.
Following commands used with MySQL 5.7 and php7.3:
composer require magento/product-enterprise-edition=2.4.0 --no-update
composer update
During 'composer update' getting an error from the Magento module.
I have tried with included Magento keys in the auth.json file. But it's not worked. Any another solution for this error. How to resolve this.
The "http://xxrepo.xxx.com/dist/magento/module-ui/magento-module-ui-101.2.0.zip" file could not be downloaded (HTTP/1.1 404 Not Found)
Please let me know if anyone knows how to resolve this.
You don't need to run
composer require Magento/product-enterprise-edition=2.4.0 --no-update
You can use the below method to upgrade the commerce edition, eg if you want to upgrade to 2.4.3 then the below command will be used.
composer require "magento/magento-cloud-metapackage":">=2.4.3 <2.4.4"
--no-update -vvv
composer update magento/magento-cloud-metapackage -vvv
composer update -vvv
After this, you need to commit your changed files and merge them with integration or staging instances.
more detailed information you can find here

Magento Post Upgrade steps : 2.3 to 2.4

I have recently upgraded magento version from 2.3 to 2.4
WHat are the potential post upgrade steps for further process ?
Welcome to Stackoverflow, your question is not fully clear, please try to ask some specific question
There are no post-upgrade steps - the goal of upgrading should be a working system without any additional steps
To upgrade to 2.4 you need
Install and setup Elasticsearch
install MariaDB version compatible with Magento 2.4
Update Magento itself with composer
Run setup:upgrade command

Deprecated Functionality: idn_to_ascii() Magento 2.3.1 with PHP 7.2

I'm using Magento 2.3.1 with PHP 7.2, facing error while creating customers account at admin end.
Found some sources on the internet to degrade PHP version.
Is there any other option available without degrading PHP 7.2?
Log:
main.CRITICAL: Exception message: Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /public_html/vendor/zendframework/zend-validator/src/EmailAddress.php on line 560
idn_to_ascii() at Line 560:
return (idn_to_ascii($email) ?: $email);
I encountered this exact issue after upgrading the PHP version of the server to 7.3.
Initially, the issue was with the Zend framework like yourself, but after an upgrade to Magento 2.3.5 (in an attempt to correct the problem), an identical error was thrown for the newer Laminas.
I tried a number of solutions, including downgrading guzzle from 6.5.3 to 6.5.2, as suggested here: https://stackoverflow.com/a/61596343/9667652
It seems the only solution is to downgrade PHP to 7.1. The issue continues even with PHP 7.2. I downgraded to PHP 7.1 and emails are now sending.
EDIT: As per comment by #user125661, it's important to note that PHP 7.1 is no longer supported:
PHP 7.1 has reached End of Life. To maintain PCI compliance, Magento should not be run on unsupported software. Installing from GitHub will no longer work with Magento 2.3.4/PHP 7.1. The only way to install 2.3.4 with PHP 7.1.x is with Composer. Magento recommends using PHP 7.3
See: https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html#php
This issue has been encountered repeatedly but is not able to be reproduced reliably, as documented here: https://github.com/magento/magento2/issues/19795
Looks as though the most likely reason for the issue is servers running CentOS 6, where CentOS 7 is needed: https://github.com/magento/magento2/issues/19795#issuecomment-486432245
Best bet is to get your server onto CentOS 7, but where this is not possible, it seems the only workaround is downgrading to PHP 7.1.

which codeigniter version I should use production and deprecated function

I am having one codeigniter application with version 2.2.6. Is it good to use it in production OR I have to upgrade to 3.1
If YES how to upgrade? Version 3.x is still under development. What are the deprecated function (https://www.codeigniter.com/docs)
Its always better to use latest version for speed & security purpose.
But first you have to check your server PHP version, because CodeIgniter latest version 3.1.9 is not compatible with PHP 5.6
Your server must have PHP version 7.1 or 7.2 for CI 3.1.x
For upgrade CodeIgniter 2.2.6 to 3.1.x, you have to make few changes.
You can get steps for upgrade CI from here.
If your projects is not using deprecated CI functionality, then just replace "system" folder with latest version of CI will work.
My suggestion is to use CI latest version in production.

Is there any compatibility issues with magento 1.5 and PHP 5.4

I have a Magento 1.5 site and PHP 5.3 version.I want to upgrade the PHP version to 5.4.Is there any compatibility issues will occur with magento 1.5? Is magento 1.5 support PHP version 5.4 ?
I don't think that Magento 1.5 is compatible with PHP 5.4.
According to http://www.magentocommerce.com/knowledge-base/entry/php54-patch, there is a Patch solving problems with Magento 1.6.0.0–1.8.1.0.
If you want to use PHP 5.4, you should consider about updating the Magento-Code or try to test it in another enviroment.
Cheers,
Chris
Magento is still patching in PHP 5.4 support. If you want the best experience in this regard, always got with the very latest version. Right now this should be 1.9.1.0.
You can easily test your own shop by enabling magento developer mode. It should display all sort of errors incl. strict warnings which you most likely will trigger with PHP 5.4 (and later on 5.5).
But as others have written, it's better you move up to a more recent version of magento.