• Resolved arlingtoner

    (@arlingtoner)


    Using WPForms Lite 1.7.1.2, I have a form that has only an Email field and a Submit button. When I enter a very long address (“asdfffff…[email protected]”, which is about 90 f’s), I get the following in my error log and across the top of the page on which the form occurs:

    [01-Jan-2022 20:16:43 UTC] PHP Fatal error:  Uncaught TrueBV\Exception\LabelOutOfBoundsException: The length of any one label is limited to between 1 and 63 octets, but 94 given. in /home/dh_bbfafd/tsglma.org/wp-content/plugins/wpforms-lite/vendor/true/punycode/src/Punycode.php:183
    Stack trace:
    #0 /home/dh_bbfafd/tsglma.org/wp-content/plugins/wpforms-lite/includes/fields/class-email.php(921): TrueBV\Punycode->decode('asdffffffffffff...')
    #1 /home/dh_bbfafd/tsglma.org/wp-content/plugins/wpforms-lite/includes/fields/class-email.php(899): WPForms_Field_Email->transform_punycode('asdffffffffffff...', Array)
    #2 /home/dh_bbfafd/tsglma.org/wp-content/plugins/wpforms-lite/includes/fields/class-email.php(524): WPForms_Field_Email->decode_punycode('asdffffffffffff...')
    #3 /home/dh_bbfafd/tsglma.org/wp-includes/class-wp-hook.php(303): WPForms_Field_Email->format('1', 'asdffffffffffff...', Array)
    #4 /home/dh_bbfafd/tsglma.org/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #5 /home/dh_bbfafd/tsglma.org/wp-includes/plugin.php(470): WP_Hook->do_ in /home/dh_bbfafd/tsglma.org/wp-content/plugins/wpforms-lite/vendor/true/punycode/src/Punycode.php on line 183
    [01-Jan-2022 20:17:23 UTC] Going to add_filter wpformsS_smart_tag_process
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @arlingtoner,

    Thank you for your patience here! This is due to the label limit defined that is 63 characters. Please see this article

    Hope this helps! ??

    Thread Starter arlingtoner

    (@arlingtoner)

    Do you think that a user should be able to do anything in a form’s field that causes a fatal error? Rather I think that they should get a warning that says something like “tisk, tisk, please enter fewer than 63 characters” similar to the warnings they get for many other types of bad input.

    Hey @arlingtoner – sorry for the delayed response here!

    I am still working with the team to replicate the issue with the email field in the WPForms Lite plugin.

    Thanks!

    Thread Starter arlingtoner

    (@arlingtoner)

    You can’t replicate this? What exactly have you tried? I can try comparing that to what I have.

    Hi @arlingtoner,

    Thank you for your patience here! I was able to replicate the issue when I add 90 f’s in the email field. This has been reported to our development team for validation improvement.

    Thanks for reporting this!

    Hi @arlingtoner,

    Thank you for your patience here! The issue has been resolved and will be implemented in the new upcoming release version 1.7.3

    Hi @arlingtoner,

    Thank you for your patience here! The issue has been resolved and the validation message is displayed when an unexpected email address is added to the email field. When you get a chance, could you please verify and let me know if you have any questions here?

    Thanks again ??

    Thread Starter arlingtoner

    (@arlingtoner)

    Looks good to me. If you close incidents, then please close this one.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Very long string in Email field gives fatal error’ is closed to new replies.