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

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
Do I have to reinstall prestashop? Does not it resolve by changing 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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