Mailchimp app sync issues
Hi!
I updated the Mailchimp app for Perch. Also updated Perch core so the app can function.
I deleted the database tables as suggested in the documentation.
I get Campaigns from Mailchimp, but can't the other lists.
On cron I get error:
FAILED | MailChimp | import_data | Reasons.
Perch: 2.8.29
Production mode: Production (100)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_forms (1.8.3), perch_mailchimp (3.0)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (9260), perch2_content_items (740), perch2_content_regions (101), perch2_forms (1), perch2_forms_responses (27), perch2_mailchimp_campaigns (14), perch2_mailchimp_imports (0), perch2_mailchimp_lists (0), perch2_mailchimp_subscribers (0), perch2_mailchimp_subscriptions (0), perch2_mailchimp_webhooks (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (3), perch2_pages (28), perch2_resource_log (2464), perch2_resource_tags (0), perch2_resources (590), perch2_resources_to_tags (0), perch2_scheduled_tasks (11), perch2_settings (30), perch2_user_passwords (0), perch2_user_privileges (34), perch2_user_role_privileges (15), perch2_user_roles (2), perch2_users (3)
Users: 3
App runtimes:
<?php
$apps_list = array(
'content',
'perch_mailchimp',
'perch_forms'
);
Scheduled tasks for perch_mailchimp: import_data (1 mins)
Editor plug-ins: markitup
H1: bd3f1cad825b15293be5bc5e2bf1e709
L1: e16af107203ee3e3953ed7ef1b72afbd
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.5.2: done
latest_version: 2.8.15
on_sale_version: 2.8.29
headerScheme: light
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 1
logoPath: /perch/resources/logo.png
update_2.5.4: done
perch_mailchimp_secret: 8bf01e8cd00f5dce360627e9a1fed7fa
perch_mailchimp_update: 2.0
perch_mailchimp_api_key: 08aad00e56d0fb8e3a519edf32093333-us8
perch_mailchimp_list_id: 2d4e78a112
perch_mailchimp_campaign_url: /mailchimp/uutiskirjeet.php?s={campaignSlug}
update_2.6: done
update_2.6.3: done
update_2.6.6: done
update_2.7.3: done
update_2.8.13: done
update_2.8.17: done
update_2.8.29: done
What happens if you visit the Lists section of the MailChimp app?
It's empty.
I can see only Campaigns, all the other sections are empty.
If you turn on debug, do you see anything at the bottom of that page?
It seems that all of them has some errors:
Lists:
Subscribers:
Campaigns:
Webhooks:
When you deleted the tables, did you remove all the
perch2_mailchimp
tables?Yeah, I did. There was I think four. But yes, I dropped all of them that had the extension _mailchimp.
Should I remove them again and start over?
It's worth giving it a shot, as it looks like you still have old table definitions.
Well, that didn't help.
Once I dropped these tables:
perch2_mailchimp_campaigns perch2_mailchimp_imports perch2_mailchimp_lists perch2_mailchimp_subscribers perch2_mailchimp_subscriptions perch2_mailchimp_webhooks
On first login Perch generated them again and the campaigns are already in the list.
I don't follow how the campaigns could exist without the lists.
Me neither.
I emptied all the tables from the database, then dropped the tables again.
After that only the campaigns reappeared, so it definitely gets them from mailchimp API.
Apache Error log has this kinda line:
Lists has this error:
Subsrcibers this:
Campaigns has this:
And webhooks:
Do you see the
listTitle
column in the lists table?Yes I do. It's > CHAR / 255
The only table populated is the perch2_mailchimp_campaigns, naturally cause that's the only place shown in the backend.
Do you have any errors from when the table is created?
Nope, can't find any mysql errors.
When you get this error, what happens before it?
When I empty the and drop the tables. The tables gets recreated after login to Perch.
So here's all the errors when the API key is not set and logged in to Perch for the 'first' time.
In Apache error I get this mentioned error:
Lists:
Subscribers:
Campaigns:
Webhooks:
Are you saying if you unset the API key the tables don't get created? Does that help us in any way?
Nope, the tables get created in any case. They're all empty at first and on the first visit to campaigns page it gets the campaigns from mailchimp correctly.
The other lists, webhooks etc. are not fetched from mailchimp.
This is really puzzling. Can you give me a dump of the structure of the mail chimp tables that you currently have?
Hi, Drew.
I sent you the entire database dump via. email. Did you see it?