Answers.Body: <p>It looks like this issue has been reported and fixed here: <a href="https://lab.civicrm.org/dev/core/issues/1469" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/issues/1469</a></p>
  
  <p>With this patch <a href="https://github.com/civicrm/civicrm-packages/pull/271.patch" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-packages/pull/271.patch</a></p>
  
  <p>To apply.</p>
  
  <p>First make up a backup of the file.</p>
  
  <p>Then option one - if you have command line access you would want to</p>
  
  <p>navigate to </p>
  
  <p>/home2/nymissionary/public_html/administrator/components/com_civicrm/civicrm/packages/</p>
  
  <p>Download the patch using wget</p>
  
  <p>wget <a href="https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-packages/pull/271.patch" rel="nofollow noreferrer">https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-packages/pull/271.patch</a> </p>
  
  <p>This will create a file called 271.patch</p>
  
  <p>Then you want to apply the patch using the patch command</p>
  
  <p>patch -p1 &lt; 271.patch</p>
  
  <p>( What this does</p>
  
  <ol>
  <li>use the patch command</li>
  <li>strip off the first 1 bit of the path when searching for the files (in this case the a and the b from a/HTML/QuickForm/Rule/Email.php b/HTML/QuickForm/Rule/Email.php ) </li>
  <li>and read in the file you downloaded to get the instructions on what to do.</li>
  </ol>
  
  <p>)</p>
  
  <p>In this case it looks like a pretty simple patch that you could do manually if you were more comfortable.</p>
  
  <p>Again make a backup of the file then edit the file: HTML/QuickForm/Rule/Email.php</p>
  
  <p>Then look at 
  <a href="https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-packages/pull/271.patch" rel="nofollow noreferrer">https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-packages/pull/271.patch</a></p>
  
  <p>What you want to do is add any line (without the +) that starts with a plus and remove anything with a minus.</p>
  
  <p>You want to add the code between the lines without the pluses above and below so the first chunk will go in about line 37.</p>
  
  <p>after</p>
  
  <p>class HTML_QuickForm_Rule_Email extends HTML_QuickForm_Rule
   {</p>
  
  <p>but before 
       // switching to a better regex as per CRM-40</p>
  
  <p>Then the second bit you just need to swap </p>
  
  <p>$part = idn_to_ascii($part, 0, INTL_IDNA_VARIANT_UTS46);
  for 
  $part = self::idn_to_ascii($part);</p>
  
  <p>If you get any errors after saving just revert to your backup.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-17T18:41:36.853Z
Answers.Text: I am new to github. Do I copy the Email.php and replace the one in my server with this copy?
Answers.UserDisplayName: Ron A.
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-17T19:24:07.073Z
Answers.Text: I've edited the answer above.
Answers.UserDisplayName: Luke Stewart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-20T18:12:41.987Z
Answers.Text: See also discussion at https://civicrm.stackexchange.com/questions/34023/after-upgrading-to-5-20-0-unable-to-edit-or-enter-contact-email-addresses-em
Answers.UserDisplayName: Jern
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-17T07:05:59.793Z
Answers.LastActivityDate: 2019-12-17T19:22:28.580Z
Answers.LastEditDate: 2019-12-17T19:22:28.580Z
Answers.UserDisplayName: Luke Stewart
Body: <p>I get this error while in the Configure Event -> Online Registration tab and trying to enable the Send Confirmation Email feature:</p>
  
  <p>Warning: idn_to_ascii() expects parameter 3 to be integer, string given in /home2/nymissionary/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Rule/Email.php on line 58</p>
  
  <p>A screenshot is shown below. I need your help so I can use this feature.</p>
  
  <p>~ Ron</p>
  
  <p><a href="https://i.sstatic.net/84ck7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/84ck7.png" alt="enter image description here"></a></p>
  
Tags: <civievent>
Title: Confirm From Email Error in Configure Event
ThreadText: # Confirm From Email Error in Configure Event
  
  (Asked by: username_0 on 2019-12-17)
  
  I get this error while in the Configure Event -> Online Registration tab and trying to enable the Send Confirmation Email feature:
  
  Warning: idn\_to\_ascii() expects parameter 3 to be integer, string given in /home2/nymissionary/public\_html/administrator/components/com\_civicrm/civicrm/packages/HTML/QuickForm/Rule/Email.php on line 58
  
  A screenshot is shown below. I need your help so I can use this feature.
  
  ~ Ron
  
  [![enter image description here](https://i.sstatic.net/84ck7.png)](https://i.sstatic.net/84ck7.png)
  
  **Tags:** civievent
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-17. Score: 2
  
  It looks like this issue has been reported and fixed here: <https://lab.civicrm.org/dev/core/issues/1469>
  
  With this patch <https://github.com/civicrm/civicrm-packages/pull/271.patch>
  
  To apply.
  
  First make up a backup of the file.
  
  Then option one - if you have command line access you would want to
  
  navigate to
  
  /home2/nymissionary/public\_html/administrator/components/com\_civicrm/civicrm/packages/
  
  Download the patch using wget
  
  wget <https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-packages/pull/271.patch>
  
  This will create a file called 271.patch
  
  Then you want to apply the patch using the patch command
  
  patch -p1 < 271.patch
  
  ( What this does
  
  1. use the patch command
  2. strip off the first 1 bit of the path when searching for the files (in this case the a and the b from a/HTML/QuickForm/Rule/Email.php b/HTML/QuickForm/Rule/Email.php )
  3. and read in the file you downloaded to get the instructions on what to do.
  
  )
  
  In this case it looks like a pretty simple patch that you could do manually if you were more comfortable.
  
  Again make a backup of the file then edit the file: HTML/QuickForm/Rule/Email.php
  
  Then look at
  <https://patch-diff.githubusercontent.com/raw/civicrm/civicrm-packages/pull/271.patch>
  
  What you want to do is add any line (without the +) that starts with a plus and remove anything with a minus.
  
  You want to add the code between the lines without the pluses above and below so the first chunk will go in about line 37.
  
  after
  
  class HTML\_QuickForm\_Rule\_Email extends HTML\_QuickForm\_Rule
  {
  
  but before
  // switching to a better regex as per CRM-40
  
  Then the second bit you just need to swap
  
  $part = idn\_to\_ascii($part, 0, INTL\_IDNA\_VARIANT\_UTS46);
  for
  $part = self::idn\_to\_ascii($part);
  
  If you get any errors after saving just revert to your backup.
  
  > **Comments:**
  > **username_0**: I am new to github. Do I copy the Email.php and replace the one in my server with this copy?  
  > **username_1**: I've edited the answer above.  
  > **username_2**: See also discussion at https://civicrm.stackexchange.com/questions/34023/after-upgrading-to-5-20-0-unable-to-edit-or-enter-contact-email-addresses-em  
  
  ---
  
  