Support » Plugin: CF7 to Webhook » v5.2.1 breaks special_mail_tags for CF7 to Webhook

  • Resolved raylsa

    (@raylsa)


    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 9

    When 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mario Valney

    (@mariovalney)

    Hey! Thanks for point that.
    Sounds like CF7 5.2.1 changed the filter without notice anyone.

    I just released version 2.2.2 fixing that, please update.

    Mario, thanks for the quick response and fix! I just tested across a few different website and the update fixed the issue. Thanks again for the speedy response and fix!

    I couldn’t find a way to create a new topic, but is there a way to include the name of the form in the data that is sent?

    Plugin Author Mario Valney

    (@mariovalney)

    Moved to here.

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