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
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 11 months, 3 weeks ago by
Marlimant.
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.