Jump to content

Recommended Posts

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! 


 

Screen Shot 2018-07-24 at 3.58.48 AM.png

Edited by BoutiquedeFrancheska
attachment added (see edit history)

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

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.

Screen Shot 2018-08-12 at 4.35.08 PM.png

  • Like 1

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

 

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 !

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More