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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bug Found: Error in code’ is closed to new replies.