Support

Home Forums Event Espresso Premium Mailchimp API Keeps Disconnecting From Event Expresso

Mailchimp API Keeps Disconnecting From Event Expresso

Posted: June 28, 2022 at 12:20 am

Viewing 6 reply threads


emileeek

June 28, 2022 at 12:20 am

Hey Team,

Again, I’m having an issue with my Mailchimp plugin.

I have my Mailchimp API key inserted into EE to transfer data to my Mailchimp groups.

Recently, every couple of days, when I click under “add-on’s” and select “mailchimp” where it says “API key” it is blank and disappears, even though it was there before.

Every registration that then follows, doesn’t sync with mailchimp becoming very frustrating.

In the log, the issue reads:

code 0
msg Invalid MailChimp API Key.
body

To resolve this, in my mailchimp account, I created a new API key and entered that. This lasted for about two weeks, then the issue happened again.

Please help me figure out why my API infrequently disconnects.

Thank you,


Tony

  • Support Staff

June 29, 2022 at 4:22 am

Hi there,

With our integration there isn’t a ‘connection’ as such, we use an API key to send data over to MailChimp so as long as MailChimp still consider the API Key valid it should work.

Just to clarify, do registrations stop being sent to MailChimp and then you see the key is missing or does the key only disappear when the settings page is viewed and then registrations stop syncing?

Within the EE4 MailChimp add-on there is only one place where the ‘config’ (the place that stores all of MailChimp settings) is saved/updated and that’s when you click the update button in the MailChimp settings. The key is validated when the settings page loads and if there is an issue with that validation call it will show an error and remove the key.

The add-on does also validate the key when it’s initialized and about to send data over to MailChimp and it does this simply by sending a request to MailChimp and checking if an error is returned. The key will not be removed when that happens but if the validation returned an error, no subscriptions will be sent to MailChimp.

So either, something is happening within the database and the config is being wiped (meaning the add-on no longer has an API key to use) or MailChimp is returning an error when the key is checked and the subscriptions aren’t being sent, then the setting pages are being loaded, the error returned on the validation request and the key is being removed then.

Do you have FTP access to the server?

I’d like to add some additional logging to the validation call on the the version of MailChimp you are running to see if that highlights any issues.


emileeek

June 30, 2022 at 12:22 am

Hey Tony,

Thanks for your response, please see my responses below:

– The key disappear when I view the settings page and from that point onwards, registrations stop syncing

I’ll be honest, some of the things you mentioned I don’t understand entirely. however I do have FTP access, what should we do next to resolve this issue?


Tony

  • Support Staff

June 30, 2022 at 10:02 am

Actually, rather than advising how you do this over FTP, I’ll repackage the current release version with some additional logging which you can then just manually install on your site and replace the current version.

I’ll reply with a link you can use to download it after this.


Tony

  • Support Staff

June 30, 2022 at 10:04 am

This reply has been marked as private.


emileeek

July 4, 2022 at 3:37 pm

Hey Tony,

I have implemented the above steps.

So now, if the issue happens again, do I post another comment on this thread and we go from there?


Tony

  • Support Staff

July 5, 2022 at 5:43 am

Correct, the next time it happens if you post up here I’ll take a look.

The additional logging adds entries to Event Espresso -> MailChimp -> Logs to save the response when validating the API key.

I can either work through the logs with you or if you send temp login details over at that time I’ll check the logs over to see if anything stands out, whichever you prefer 🙂

Viewing 6 reply threads

The support post ‘Mailchimp API Keeps Disconnecting From Event Expresso’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso