v5.2.1 breaks special_mail_tags for CF7 to Webhook
-
After upgrading to Contact Form 7 version 5.2.1, we get the following php errors when trying to send the special mail tags to our Zapier Webhook:
[06-Aug-2020 17:59:01 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpcf7_special_mail_tag(), 3 passed in /home/klcd/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /home/klcd/public_html/wp-content/plugins/contact-form-7/includes/special-mail-tags.php:9
Stack trace:
#0 /home/klcd/public_html/wp-includes/class-wp-hook.php(287): wpcf7_special_mail_tag(”, ‘_date’, false)
#1 /home/klcd/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(”, Array)
#2 /home/klcd/public_html/wp-content/plugins/cf7-to-zapier/modules/cf7/class-module-cf7.php(378): apply_filters(‘wpcf7_special_m…’, ”, ‘_date’, false)
#3 /home/klcd/public_html/wp-content/plugins/cf7-to-zapier/modules/cf7/class-module-cf7.php(211): CFTZ_Module_CF7->get_data_from_special_mail_tags(Object(WPCF7_ContactForm))
#4 /home/klcd/public_html/wp-includes/class-wp-hook.php(287): CFTZ_Module_CF7->wpcf7_mail_sent(Object(WPCF7_ContactForm))
#5 /home/klcd/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL in /home/klcd/public_html/wp-content/plugins/contact-form-7/includes/special-mail-tags.php on line 9When i rolled the plugin back to v5.2 it works as expected.
Note: Removing the Special Mail Tags with v5.2.1 does work with CF7 to Webhook.
[_date]
[_post_title]
[_site_url]
[_site_title]Regards,
Ray
- You must be logged in to reply to this topic.