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)
Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...

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

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

 

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

  • 1 month later...

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

  • 4 months later...

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

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...