• Resolved mysteries800

    (@mysteries800)


    Hi, upon installing the plugin, we get this error:

    What should we do?

Viewing 15 replies - 1 through 15 (of 46 total)
  • Thread Starter mysteries800

    (@mysteries800)

    Warning: Missing argument 3 for MailChimp_API::get(), called in /nas/content/staging/emprendedor/wp-content/plugins/mailchimp/mailchimp.php on line 638 and defined in /nas/content/staging/emprendedor/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php on line 21

    Warning: Missing argument 3 for MailChimp_API::get(), called in /nas/content/staging/emprendedor/wp-content/plugins/mailchimp/mailchimp.php on line 674 and defined in /nas/content/staging/emprendedor/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php on line 21

    mcsupport

    (@mcsupport)

    Hey mysteries800,

    Thanks for the message! To take a look do you mind getting back to us with the following information?

    – A link to your site where the plugin can be found
    – The version of WordPress you are using
    – The PHP version currently installed
    – The theme on your site
    – If the theme is switched to a default wordpress theme, does the issue persist?

    Thanks! We look forward to hearing back and helping out.

    Pearl

    edjw

    (@edjw)

    I’m having a similar issue.

    Warning: Missing argument 3 for MailChimp_API::get(), called in /home/silver/public_html/londonsacredharp/wp-content/plugins/mailchimp/mailchimp.php on line 841 and defined in /home/silver/public_html/londonsacredharp/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php on line 21

    Success, you’ve been signed up! Please look for our confirmation email.

    Here’s the information you asked for above.

    londonsacredharp.org
    Mailchimp plugin version 1.5.3
    PHP version 5.5.38
    WordPress 4.6.1 running a slightly modified child theme of ‘Decent’
    With the Twenty Fifteen theme activated, no message appears saying to check your Inbox for a confirmation email but the email does come through. There is also no Warning message.

    mcsupport

    (@mcsupport)

    Hi @edjw,

    Thanks for hopping in the thread with those details! I’d be happy to further troubleshoot things.

    Just to provide some context: the plugin does require a PHP version of 5.6 or higher in order to install and sync properly. It is also possible that the plugin code can conflict with other plugins installed on a site. In most cases this occurs when both plugins include Javascript that perform the same action on a site.

    Would you be so kind to upgrading the PHP version, and letting us know if the issue persists?

    With those details handy, I’ll be able to troubleshoot things further. I’ll keep an eye on this thread for your reply!

    – Ruby

    • This reply was modified 8 years ago by mcsupport.
    pcarvalho

    (@pcarvalho)

    hello everyone,

    the fix for this is to correctly write the function signature:

    
    --- mailchimp/lib/mailchimp/mailchimp.php 2016-11-09 00:08:21.310078341 +0000
    +++ mailchimp-really-mod/lib/mailchimp/mailchimp.php      2016-11-08 23:41:29.000000000 +0000
    @@ -18,9 +18,9 @@
             return;
         }
     
    -    public function get($endpoint, $count=10, $fields) {
    +    public function get($endpoint, $count=10, $fields=array()) {
             $url = $this->api_url . $endpoint;
    

    i’ll be creating a Pull Request soon with more fixes for the notices, warnings and errors.

    also, there’s a few PR already on the github repo that improve your plugin, please take a look soon.

    thanks!
    p.

    mcsupport

    (@mcsupport)

    Hey @pcarvalho,

    Can you link to where you’re seeing these PRs posted? Also, our devs are working on an update to this as we speak. Keep an eye out for an update to the plugin!

    Thanks,
    Garnet

    pcarvalho

    (@pcarvalho)

    Hi, great, looking forward to those updates.

    I’m looking at your outdated github repo:

    https://github.com/crowdfavorite/wp-mailchimp

    mcsupport

    (@mcsupport)

    Thanks for that info! That repo is no longer monitored by anyone at MailChimp. If you have any other feedback moving forward, feel free to post in the forum here and I’ll make sure it gets in the right hands.

    Feel free to reach back out if you need anything else!

    -Garnet

    pcarvalho

    (@pcarvalho)

    Ah I see!

    then maybe, you could remove that info from the readme/Other Notes?
    https://www.ads-software.com/plugins/mailchimp/other_notes/

    Fork the repository on github
    Clone the develop branch

    mcsupport

    (@mcsupport)

    Ah, thanks for pointing that out! Will do ??

    -Garnet

    pixell

    (@pixell)

    I am also having the same issue.

    Warning: Missing argument 3 for MailChimp_API::get(), called in /home3/ocp/public_html/helpstartshere211.org/wp-content/plugins/mailchimp/mailchimp.php on line 841 and defined in /home3/ocp/public_html/helpstartshere211.org/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php on line 21

    Any thoughts?

    pcarvalho

    (@pcarvalho)

    Hi pixell, read my first reply, you need to change that line.

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

    AZPub

    (@azpub)

    I have the same error even with PHP Version 5.6.27
    https://nextgenlivinghomes.com/phpinfo.php

    After installing the MailChimp Plugin it seems I’m getting the following error after signing up.
    Can you test it and see if you can fix this error?

    LINK TO SIDEBAR SIGN UP FORM
    https://nextgenlivinghomes.com/author/admin/

    ERROR
    Warning: Missing argument 3 for MailChimp_API::get(), called in /var/www/vhosts/nextgenlivinghomes.com/httpdocs/wp-content/plugins/mailchimp/mailchimp.php on line 841 and defined in /var/www/vhosts/nextgenlivinghomes.com/httpdocs/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php on line 21 Success, you’ve been signed up! Please look for our confirmation email.

    AZPub

    (@azpub)

    Hello Jasper

    There are no clear instructions from pcarvalho on how to use the code to fix this issue.

    Hopefully you can have a plugin with all the fixes already in place soon.

    pcarvalho

    (@pcarvalho)

    hi @azpub,

    in Line 21 of this file:
    /var/www/vhosts/nextgenlivinghomes.com/httpdocs/wp-content/plugins/mailchimp/lib/mailchimp/mailchimp.php

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

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

    I hope this clears any confusion ??

Viewing 15 replies - 1 through 15 (of 46 total)
  • The topic ‘Missing argument 3 for MailChimp_API::get()’ is closed to new replies.