Deprecated Functionality: idn_to_ascii() Magento 2.3.1 with PHP 7.2 - email

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.

Related

PHP 5.3.29 on Ubuntu 16.04 in order to run Joomla 1.5 locally

I'm working on a Joomla 1.5 website, which was developed with PHP 5.3. Now I'm having some incompatibilities issues with some components.
My machine runs Ubuntu 16.04.
The version of Joomla is 1.5.
PHP versions are 5.6 and 7.0 (apache is configured to run PHP 5.6)
I can't find a way to download and install it. The apt command only shows 5.5, 5.6, 7.0 and 7.1 PHP versions.
Can anyone help me?
I have joomla 1.5 on a website running. My config shows that PHP 5.4.16 is in use. Therefore, why dont you try it with PHP 5.4 and get it from the download page:
http://php.net/releases/
If you have troubles to install it on your computer. Take a look here:
https://serverfault.com/questions/353550/how-to-install-old-php-version
The link explains how you install a old php version on linux. Btw.: in the link it is only explained how to replace a PHP version. But it is possible to run different versions on a server.

Unable to install Zend using composer

I have been using Zend since over 2 years now and have setup environment around 10-12 times but I never got any success installing zend using composer. The error says I should have PHP version same or above required version which is always is the case. I even tried changing the version in the composer to match exactly the version with my PHP and some times installing the exact same version of PHP to match zend requirement and I always gets the same error.
How do I handle this?
Error:
Your requirements could not be resolved to an installable set of packages.
zendframework/zendframework 2.3.9 requires php >=5.3.23 -> your PHP version (5.3.6) or "config.platform.php" value does not satisfy that requirement
PHP 5.3.6 (cli) (built: Mar 17 2011 10:48:37)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
PHP 5.3.6 which you have is older than 5.3.23, because the last number 6 of your version is lower than the last number 23 in the minimum required version of the Zend framework you want to install.
UPDATE YOUR PHP. PHP 5.3 is not maintained anymore. PHP 5.3.6 has serious security bugs that got fixed in later versions, but are still open in your version.
The current PHP version is 5.6. Upgrading from 5.3 to a newer version might have some quirks regarding changed and deprecated features, but face the facts: You will never ever be able to use any recent PHP libraries via Composer because they are all requiring newer PHP versions.

Unable to get GraphAware to run on Windows Community edition

I've tried installing and running from the Zip instead of EXE as other have mentioned.
Gives a 404 if authorization header is supplied, and 401 if not
GraphAware seems to have only a version for 2.2.2, whereas 2.2.3 is the latest on the neo4j site. Managed to track down 2.2.2 only to have it not work still. Any ideas?
It is correct the GraphAware modules are not compatible with Neo4j2.2.3 due to a bug in the Transaction data in neo4j itself (ref here https://github.com/neo4j/neo4j/issues/4910) which should be fixed in 2.2.4 or 2.3-RC1
If you installed via the zip, this should however work with 2.2.2, Please amend your question with the modules you use and their version, also all configuration you have set for the moduleS.

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.

Magento 1.7.2 Install Error with curl -- Desperate

I am using WampServer Apache 2.2.22 – Mysql 5.5.24 – PHP 5.4.3 XDebug 2.1.2 XDC 1.5 PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 1.0.
Error 1: I get the following error. PHP extension "curl must be loaded.
So I go to wamp\bin\php\php5.4.3 and uncomment line extension=php_curl.dll.
Restart wamp server
Error 2: [1]: http://imgur.com/wdmMP2z
PHP Statup Unable to load dynamic library.
c:/wamp/bin/php5.4.3/ext/php_curl.dll The application failed to start because its side by side configuration is incorrect.
I tried to go to this site and get the corrected php
http://www.anindya.com/php-5-4-12-and-5-3-22-x64-64-bit-for-windows/
So i just extracted it and replaced it in c:\wamp\bin\php\php5.4.3
Also tried just having it overwrite the folder. Neither worked.
Thanks for any help.
New to Magento
Sincerely,
Joe
Seems that others have had problems with Magento 1.7.x and newer versions of WAMP. This answer here says they had to go back to WAMP 2.1:
Magento 1.7 with Wamp 2.2
I'm having a curl related problem with Magento 1.6.x and WAMP 2.2 using php 5.4.3 -- I believe I used the older php 5.3.10 when I had it successfully working..
edit: for magento 1.6.2.0 anyway, you need php 5.3.10 which is in WampServer 2.2D (not E)