HOME >> How To Wordpress >>

Fixed Mailchimp Plugin Error: Missing argument 3 for MailChimp_API::get()

Posted on date Nov-19-2016 · by author  · comments Leave a Comment 

screenshot-5

I want to use mailchimp’s service offer a free tips for my users, I installed the best mailchimp plugin — MailChimp List Subscribe Form, I installed it a few times and I like it, it is simple, clean, admin-friendly with powerful functionality, the problem is I found in my site I can not activate it, I found there are error Warning: Missing argument 3 for MailChimp_API::get(), called in /tomas/zhu/wp-content/plugins/mailchimp/mailchimp.php on line 638 and defined in /tomas/zhu/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php on line 21, I checked in the code and I found the error code is:

 

public function get($endpoint, $count=10, $fields) {


I changed it as:


public function get($endpoint, $count=10, $fields=array()) {


And they works well on my site now. 🙂

It seems the official team is still fix it, I just attached a temp version in here for myself — when I install it in my other sites, once the official team fixed it, please follow their version.

Download: mailchimp

Tags :   , ,

Leave Your Comments

CAPTCHA
*