• Resolved lekiend

    (@lekiend)


    Hello,

    Many errors like these in the error_log:
    Could you please fix this ?

    [STDERR] PHP Warning:  Undefined array key "max" in /wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 483\n
    [STDERR] PHP Warning:  Undefined array key "minlength" in /wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 477\n
    [STDERR] PHP Warning:  Undefined array key "maxlength" in /wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 469\n
    [STDERR] PHP Warning:  Undefined array key "maxlength" in /wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 461\n
Viewing 5 replies - 1 through 5 (of 5 total)
  • mmazziotti

    (@mmazziotti)

    Hi, plugin support. After the update to latest version, 4.4.0, I’m getting the same errors as lekiend. Lines: 461, 477, 483. See below. Could you please fix and release an update?
    Thanks in advance!

    Warning: Undefined array key “maxlength” in /plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 461

    Warning: Undefined array key “minlength” in /plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 477

    Warning: Undefined array key “max” in /plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 483

    Marlimant

    (@marlimant)

    Exactly the same errors here:

    Warning: Undefined array key "maxlength" in /public_html/wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 461
    
    Warning: Undefined array key "maxlength" in /public_html/wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 469
    
    Warning: Undefined array key "minlength" in /public_html/wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 477
    
    Warning: Undefined array key "max" in /home/extranot/public_html/wp-content/plugins/contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php on line 483
    
    
    • This reply was modified 3 months ago by Marlimant.
    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Ah, I know exactly what it is, I recall the line I wrote /facepalm/

    I’m out of town until Tuesday and I can release a fix then. Sorry about that, folks!

    Alright everyone, just updated the plugin to version 4.4.1 that addressed these issues!

    It was a silly mistake on my end. Before the dynamic attributes update, those keys were always being defined before validating that min/minlength was indeed less than or equal to max/maxlength but when I introduced them, I also used a for-loop that only sets them if they were set, which is why validation threw the warning if they weren’t being used.

    But now validation checks for their existence too so, should be good to go!

    Working well now, thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.