Title: Bug Found: Error in code
Last modified: July 23, 2019

---

# Bug Found: Error in code

 *  Resolved [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/bug-found-error-in-code/)
 * Hi Renzo,
 * I develop a cf7 extension which some of my users have reported an error when 
   using in combination with your mailchimp extension. I have been running some 
   tests on my local server and found an error in one of your files,
 *     ```
       PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function, 2 passed  exactly 4 expected
       Stack trace:
       #0 /var/www/html/cf7/wp-includes/class-wp-hook.php(286)
       #1 /var/www/html/cf7/wp-includes/plugin.php(208): WP_Hook->apply_filters
       #2 /var/www/html/cf7/wp-content/plugins/contact-form-7-mailchimp-extension/lib/functions.php(134): apply_filters('wpcf7_mail_tag_...',...
       ```
   
 * Your file contact-form-7-mailchimp-extension/lib/functions.php on line 134 calls,
 *     ```
       apply_filters( 'wpcf7_mail_tag_replaced', $replaced, $submitted )
       ```
   
 * however, this filter has now been updated in the contact form 7 plugin and now
   passes 4 arguments,
    File contact-form-7/includes/mail.php line 346.
 *     ```
       apply_filters( 'wpcf7_mail_tag_replaced', $replaced, $submitted, $html, $mail_tag );
       ```
   
 * can you fix this in your code?
 * many thanks
    Vrata

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Renzo Johnson](https://wordpress.org/support/users/rnzo/)
 * (@rnzo)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bug-found-error-in-code/#post-11973138)
 * Please update to the latest version, if you have any new reports please email
   me: [https://renzojohnson.com/contributions/contact-form-7-mailchimp-extension](https://renzojohnson.com/contributions/contact-form-7-mailchimp-extension)
 *  Thread Starter [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bug-found-error-in-code/#post-11974058)
 * ok, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug Found: Error in code’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7-mailchimp-extension/assets/icon-256x256.png?
   rev=1072113)
 * [Connect Contact Form 7 and Mailchimp](https://wordpress.org/plugins/contact-form-7-mailchimp-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-mailchimp-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-mailchimp-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-mailchimp-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-mailchimp-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-mailchimp-extension/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/bug-found-error-in-code/#post-11974058)
 * Status: resolved