BoutiquedeFrancheska Posted July 24, 2018 Share Posted July 24, 2018 (edited) Hi I am not sure what I did wrong, so I am unsure what I need to fix. Maybe trying to figure the issue out at 4am isn't helping either. I get the following error whenever I try to send an email from back office. be it to a customer or a test email to myself. Quote Unknown error on line 872 in file /homepages/26/d747195639/htdocs/prestashop/classes/Mail.php[8192] idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated Thanks in advance for the help! Edited July 24, 2018 by BoutiquedeFrancheska attachment added (see edit history) Link to comment Share on other sites More sharing options...
ksaan Posted July 24, 2018 Share Posted July 24, 2018 It seems you use php 7.2 with prestashop and prestashop is using php function idn_to_ascii which must be modified to be php 7.2 - compliant (see http://php.net/manual/fr/function.idn-to-ascii.php) Can you report it to prestashop ticket reporting tool forge.prestashop.com ? they will fix it I think Link to comment Share on other sites More sharing options...
BoutiquedeFrancheska Posted July 24, 2018 Author Share Posted July 24, 2018 You are correct I am running php 7.2. I will submit a ticket to see if they will fix it. If not I'll try my self. Thank you so much! Link to comment Share on other sites More sharing options...
BoutiquedeFrancheska Posted August 12, 2018 Author Share Posted August 12, 2018 Well I did submit a bug but never got an answer. And fiddling with it today I discovered the error was caused by changing the contact email address for the store. How do I change that email without causing the error is the issue now. 1 Link to comment Share on other sites More sharing options...
saditens Posted January 21, 2019 Share Posted January 21, 2019 I have the same problem.. Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "idn_to_ascii" from the global namespace." at /var/www/html/classes/Mail.php line 881. Link to comment Share on other sites More sharing options...
ksaan Posted January 21, 2019 Share Posted January 21, 2019 According to https://github.com/PrestaShop/PrestaShop/issues/10640 you need to install php-intl extension 1 Link to comment Share on other sites More sharing options...
saditens Posted January 21, 2019 Share Posted January 21, 2019 the site is on google cloud I do not have access to the php.ini file. Could I do it via ssh with the following instructions? sudo apt-get install php7.0-intl And restart apache after sudo service apache2 restart Link to comment Share on other sites More sharing options...
BoutiquedeFrancheska Posted January 21, 2019 Author Share Posted January 21, 2019 The fix had nothing to do with php-intl I began to have the error when I changed the mail email address in my prestashop setup. I had installed using my personal email when I changed the email in the system it would generate the 500 error. I changed the email back and it fixed it. I then just reinstalled prestashop with the correct email Link to comment Share on other sites More sharing options...
saditens Posted January 21, 2019 Share Posted January 21, 2019 Do I have to reinstall prestashop? Does not it resolve by changing email? Link to comment Share on other sites More sharing options...
BoutiquedeFrancheska Posted January 21, 2019 Author Share Posted January 21, 2019 You don't have to reinstall, just changing back the email will work. I just reinstalled thankfully the backups worked and I didn't have to start from scratch. Link to comment Share on other sites More sharing options...
saditens Posted January 21, 2019 Share Posted January 21, 2019 I changed the email but I still have the error ... :( Link to comment Share on other sites More sharing options...
BoutiquedeFrancheska Posted January 21, 2019 Author Share Posted January 21, 2019 You're might be another issue then. Sorry wasn't much help. Link to comment Share on other sites More sharing options...
saditens Posted January 21, 2019 Share Posted January 21, 2019 Thanks for your help Link to comment Share on other sites More sharing options...
ksaan Posted January 21, 2019 Share Posted January 21, 2019 There is maybe 2 issues: - Unknown error on line 872 in file /homepages/26/d747195639/htdocs/prestashop/classes/Mail.php [8192] idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated and - Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "idn_to_ascii" from the global namespace." at /var/www/html/classes/Mail.php line 881. These are 2 different error messages although both linked to mail. So 2 issues => 2 different solutions Link to comment Share on other sites More sharing options...
saditens Posted January 21, 2019 Share Posted January 21, 2019 my error is second. Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "idn_to_ascii" from the global namespace." at /var/www/html/classes/Mail.php line 881. how can i solve this error? thank you Link to comment Share on other sites More sharing options...
patuga Posted March 21, 2019 Share Posted March 21, 2019 also had the "Attempted to call function "idn_to_ascii" problem and got it fixed by installing/enabling the intl funcion on php. to do that, you need to enter cpanel and go to "change php version" and click on the "intl" funcion. hit save and be happy if you don't have access to it, ask your hoster to do it for you. anyway, thank you for the solution. and hope this helps more people getting the problem solved. Link to comment Share on other sites More sharing options...
Franck_77 Posted August 7, 2019 Share Posted August 7, 2019 Hi, After migration from PS 1.5.4.1 to PS 1.7.4.2... with PHP 7.2.14 I had added "extension = intl.so" in php.in. And it seems that mails around buying process works now. But the email in reset password process still not working. So I had set PHP to 7.1.26. Email in reset password process now. Good luck ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now