Codeigniter 3.1.7 valid_email issue











up vote
5
down vote

favorite












I have two sites using Codeigniter. Today I have updated sites to Codeigniter 3.1.7 (from 3.1.6). After that at one of this sites email validation had broken, valid_email validation rule doesn't work any more. On second site all fine. I had check out error logs and found error:



ERROR - 2018-02-06 10:13:21 --> Severity: Warning --> idn_to_ascii() expects parameter 3 to be long, string given /public_html/system/libraries/Form_validation.php 1235


Codeigniter's changlog says:



Updated Form Validation Library rule valid_email to use INTL_IDNA_VARIANT_UTS46 for non-ASCII domain names.


It seems to me that INTL_IDNA_VARIANT_UTS46 constant is not defined. Site using PHP Version 5.6.30



How can I fix this issue?










share|improve this question


























    up vote
    5
    down vote

    favorite












    I have two sites using Codeigniter. Today I have updated sites to Codeigniter 3.1.7 (from 3.1.6). After that at one of this sites email validation had broken, valid_email validation rule doesn't work any more. On second site all fine. I had check out error logs and found error:



    ERROR - 2018-02-06 10:13:21 --> Severity: Warning --> idn_to_ascii() expects parameter 3 to be long, string given /public_html/system/libraries/Form_validation.php 1235


    Codeigniter's changlog says:



    Updated Form Validation Library rule valid_email to use INTL_IDNA_VARIANT_UTS46 for non-ASCII domain names.


    It seems to me that INTL_IDNA_VARIANT_UTS46 constant is not defined. Site using PHP Version 5.6.30



    How can I fix this issue?










    share|improve this question
























      up vote
      5
      down vote

      favorite









      up vote
      5
      down vote

      favorite











      I have two sites using Codeigniter. Today I have updated sites to Codeigniter 3.1.7 (from 3.1.6). After that at one of this sites email validation had broken, valid_email validation rule doesn't work any more. On second site all fine. I had check out error logs and found error:



      ERROR - 2018-02-06 10:13:21 --> Severity: Warning --> idn_to_ascii() expects parameter 3 to be long, string given /public_html/system/libraries/Form_validation.php 1235


      Codeigniter's changlog says:



      Updated Form Validation Library rule valid_email to use INTL_IDNA_VARIANT_UTS46 for non-ASCII domain names.


      It seems to me that INTL_IDNA_VARIANT_UTS46 constant is not defined. Site using PHP Version 5.6.30



      How can I fix this issue?










      share|improve this question













      I have two sites using Codeigniter. Today I have updated sites to Codeigniter 3.1.7 (from 3.1.6). After that at one of this sites email validation had broken, valid_email validation rule doesn't work any more. On second site all fine. I had check out error logs and found error:



      ERROR - 2018-02-06 10:13:21 --> Severity: Warning --> idn_to_ascii() expects parameter 3 to be long, string given /public_html/system/libraries/Form_validation.php 1235


      Codeigniter's changlog says:



      Updated Form Validation Library rule valid_email to use INTL_IDNA_VARIANT_UTS46 for non-ASCII domain names.


      It seems to me that INTL_IDNA_VARIANT_UTS46 constant is not defined. Site using PHP Version 5.6.30



      How can I fix this issue?







      php codeigniter






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 6 at 9:12









      Evgeny

      2,94211126




      2,94211126
























          3 Answers
          3






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          I found discussion of this problem here.



          Issue is outdated ICU library (ICU version 4.2.1 was installed)






          share|improve this answer




























            up vote
            0
            down vote













            just get the latest library for email
            Get the latest codeigniter zip file
            then go to system->libraries->Email file
            copy that email file and paste it into your previous Email.php library file then it will work






            share|improve this answer




























              up vote
              0
              down vote













              I think there's a better way to sort out that issue.
              As we all know that email library not supported in php 7.2 and that's why error occured




              idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated




              Error Screenshot of codeigniter email library



              Quick Solution :




              • --> Go to cPanel
                --> Select PHP version
                --> change it to 7.1 instead of 7.2






              share|improve this answer





















                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48639263%2fcodeigniter-3-1-7-valid-email-issue%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                2
                down vote



                accepted










                I found discussion of this problem here.



                Issue is outdated ICU library (ICU version 4.2.1 was installed)






                share|improve this answer

























                  up vote
                  2
                  down vote



                  accepted










                  I found discussion of this problem here.



                  Issue is outdated ICU library (ICU version 4.2.1 was installed)






                  share|improve this answer























                    up vote
                    2
                    down vote



                    accepted







                    up vote
                    2
                    down vote



                    accepted






                    I found discussion of this problem here.



                    Issue is outdated ICU library (ICU version 4.2.1 was installed)






                    share|improve this answer












                    I found discussion of this problem here.



                    Issue is outdated ICU library (ICU version 4.2.1 was installed)







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 6 at 10:21









                    Evgeny

                    2,94211126




                    2,94211126
























                        up vote
                        0
                        down vote













                        just get the latest library for email
                        Get the latest codeigniter zip file
                        then go to system->libraries->Email file
                        copy that email file and paste it into your previous Email.php library file then it will work






                        share|improve this answer

























                          up vote
                          0
                          down vote













                          just get the latest library for email
                          Get the latest codeigniter zip file
                          then go to system->libraries->Email file
                          copy that email file and paste it into your previous Email.php library file then it will work






                          share|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            just get the latest library for email
                            Get the latest codeigniter zip file
                            then go to system->libraries->Email file
                            copy that email file and paste it into your previous Email.php library file then it will work






                            share|improve this answer












                            just get the latest library for email
                            Get the latest codeigniter zip file
                            then go to system->libraries->Email file
                            copy that email file and paste it into your previous Email.php library file then it will work







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 18 at 9:48









                            waleed hassan

                            122




                            122






















                                up vote
                                0
                                down vote













                                I think there's a better way to sort out that issue.
                                As we all know that email library not supported in php 7.2 and that's why error occured




                                idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated




                                Error Screenshot of codeigniter email library



                                Quick Solution :




                                • --> Go to cPanel
                                  --> Select PHP version
                                  --> change it to 7.1 instead of 7.2






                                share|improve this answer

























                                  up vote
                                  0
                                  down vote













                                  I think there's a better way to sort out that issue.
                                  As we all know that email library not supported in php 7.2 and that's why error occured




                                  idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated




                                  Error Screenshot of codeigniter email library



                                  Quick Solution :




                                  • --> Go to cPanel
                                    --> Select PHP version
                                    --> change it to 7.1 instead of 7.2






                                  share|improve this answer























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    I think there's a better way to sort out that issue.
                                    As we all know that email library not supported in php 7.2 and that's why error occured




                                    idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated




                                    Error Screenshot of codeigniter email library



                                    Quick Solution :




                                    • --> Go to cPanel
                                      --> Select PHP version
                                      --> change it to 7.1 instead of 7.2






                                    share|improve this answer












                                    I think there's a better way to sort out that issue.
                                    As we all know that email library not supported in php 7.2 and that's why error occured




                                    idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated




                                    Error Screenshot of codeigniter email library



                                    Quick Solution :




                                    • --> Go to cPanel
                                      --> Select PHP version
                                      --> change it to 7.1 instead of 7.2







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Nov 11 at 10:13









                                    anupammondal.in

                                    12




                                    12






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.





                                        Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                        Please pay close attention to the following guidance:


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48639263%2fcodeigniter-3-1-7-valid-email-issue%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        List item for chat from Array inside array React Native

                                        Thiostrepton

                                        Caerphilly