pwkip / contact-form-7-conditional-fields

Wordpress Plugin: Contact Form 7 Conditional Fields
http://bdwm.be/wpcf7cf
22 stars 18 forks source link

Incompatible with Contact Form v5.8+ validation #112

Closed joostdekeijzer closed 10 months ago

joostdekeijzer commented 11 months ago

Hi,

I’ve just discovered that with the major ContactForm7 WPCF7_ConfigValidator class rewrite the Config Validation breaks (heavily).

With the CF7 v5.8 update the ConfigValidator class has received a major upgrade/rewrite. The int error codes were replaced by strings and many other changes.

See https://github.com/rocklobster-in/contact-form-7/commit/4f53e4921d05a630e25bc75b3118315e2569e44a and https://github.com/rocklobster-in/contact-form-7/issues/1254 .

When you do a “config validation” with CF7 v5.8+ you get a PHP error because the WPCF7_ConfigValidator::error_invalid_mailbox_syntax constant does not exist any more.

Previously reported on the WordPress plugin forum, see https://wordpress.org/support/topic/plugin-breaks-cf7-config-validation-after-major-wpcf7_configvalidator-rewrite/