Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1358598

    mozmeny
    Participant

    Hi,

    I have created an account in MailChimp and an API key. However, whenever I pop in this key in WordPress – > Email Forms -> MailChimp tab, it disappears without displaying any error message as if nothing is happening.

    I have tried to troubleshoot the problem and run the below command in the web server with my own parameters:

    curl -v https://us1.api.mailchimp.com/3.0/?apikey=test

    I got an HTTP 200 response successfully.

    Can you please help me with this?

    Thanks

    #1358658

    Rupok
    Member

    Hi there,

    Sorry to hear that you are having trouble. We would like to check your setup. Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – MailChimp API key.

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1360811

    mozmeny
    Participant
    This reply has been marked as private.
    #1360995

    Lely
    Moderator

    Hi There,

    Please double check the credentials. It is not working.
    For the mean time, please check this thread:https://community.theme.co/forums/topic/emailforms-do-not-accept-mailchimp-api-key/#post-816321

    Hope this helps.

    #1366810

    mozmeny
    Participant

    Hi, sorry I gave you a wrong link.

    Can you please try the same credentials on http://www.devlane.com.au/devlane/wp-admin

    #1366923

    Rad
    Moderator

    Hi there,

    Please provide your FTP login credentials as well. Maybe we can get information from the code directly.

    Thanks!

    #1368812

    mozmeny
    Participant
    This reply has been marked as private.
    #1371576

    mozmeny
    Participant

    Hi,

    Can I please get an update on this? It s been 10 days now and the subscription is not working on production. I am receiving complaints.

    Thanks for your help.

    #1372428

    Rad
    Moderator

    Hi there,

    I need FTP login credentials to test the connectivity between your site and MailChimp server.

    Thanks.

    #1373310

    mozmeny
    Participant
    This reply has been marked as private.
    #1374146

    Rad
    Moderator

    Hi there,

    This is the issue “API call to /users/profile failed: SSL certificate problem: unable to get local issuer certificate” and your site’s certificate isn’t properly installed.

    I added some fixes by implementing cacert.pem and ca-bundle.crt and it still won’t work. Perhaps, it’s using different certificates imposed by the server. Is it windows? Because in linux, you’ll just need to place it in designated folder within WordPress. You may contact your hosting provider about this.

    Thanks.

    #1376802

    mozmeny
    Participant

    Hi,

    We have just bought a certificate and installed it on the server. The same page is still not responding. How did you manage to dig out that error message? I have turned on the debug.log but nothing is generated.

    Thanks.

    #1376958

    Rad
    Moderator

    Hi there,

    The error is captured but not recorded. And what certificate? I was referring to CURL certificate ( http://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-unable-to-get-local-issuer-certificate ) and not the SSL that usually configured for site’s HTTPS.

    You can get this error by editing this file \wp-content\plugins\x-email-mailchimp\email-mailchimp\functions\provider.php and find this code

     function validate_api_key( $key ) {
    
        $result = true;
    
        try {
    
          $mc_api = $this->make_api_wrapper( $key, true );
          $mc_api->call('/users/profile', array() );
    
        } catch ( Mailchimp_Invalid_ApiKey $e ) {
    
          $result = new WP_Error( 'x-mailchimp', __( 'Invalid API key.', '__x__' ) );
    
        } catch ( Exception $e ) {
    
          $result = new WP_Error( 'x-mailchimp', sprintf( __( 'Error while attempting to validate API key: [%s]', '__x__' ), get_class( $e ) ) );
    
        }
    
        return $result;
    
      }

    Then add this line

    var_dump ( $e );

    under this line

    } catch ( Exception $e ) {

    The $e holds the error information. Then validate your API key again in the admin and it will display the error. You may forward this to your hosting provider.

    Thanks!