MailChimp v3 long sync time?
I've just installed the new version of the MailChimp app (removed old database tables and files then uploaded new). I'm finding it taking a strange amount of time to sync - the only warning i'm getting is under the Campaigns page (Campaigns are still updating) but it's been like this for nearly an hour. Is that normal? All other tabs are showing nothing.
Tried a new API key in case of conflict with previous stream. There are 775 subscribers and 6 campaigns in the MailChimp account.
Any ideas for how to nudge it along?
Many thanks CH
Perch: 2.8.29, PHP: 5.5.31, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: FreeBSD, apache2handler
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0), perch_forms (1.8.3), perch_comments (1.2), perch_mailchimp (3.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', 'perch_comments', 'perch_mailchimp' );
PERCH_LOGINPATH: /modify
PERCH_PATH: /var/www/html/(redacted).com/modify
PERCH_CORE: /var/www/html/(redacted).com/modify/core
PERCH_RESFILEPATH: /var/www/html/(redacted).com/modify/resources
Image manipulation: GD
PHP limits: Max upload 24M, Max POST 8M, Memory: 128M, Total max file upload: 8M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: (redacted).com
DOCUMENT_ROOT: /var/www/html(redacted).com
REQUEST_URI: /modify/core/settings/diagnostics/
SCRIPT_NAME: /modify/core/settings/diagnostics/index.php
How frequently is your task scheduler running?
We pull down 100 records at a time, each time it runs. A quicker way would be to sit and refresh the page, but that's obviously a bit tedious.
Hi Drew - I havn't setup the task scheduler yet (was waiting on initial download), but clicked the sync buttons for a while and nothing happens... I'll setup a scheduler for hourly updates to see if that resolves.
thanks CH
Sync won't help - it's already syncing. Just reload the page or click through the pagination. Each time you do, more data is downloaded.
There's been no change since yesterday - all pages are completely blank (i.e. no pagination).
Database tables blank except for 'perch2_mailchimp_imports' which shows 31 records for importType: 'campaigns' and importCount: '20' in each record.
Have you entered your API key?
Turn on debug and let me know what it outputs at the bottom of the page.
Yes, API key is definitely in settings.
Debug page output:
It looks like you're getting no response from MailChimp there at all.
Hi Drew
I made sure core was up to date, dropped all the mailchimp tables and reinstalled with a fresh copy of mailchimp 3 app, after that I removed the API key from Settings and entered that again.
Still nothing, except for the first visit to the Lists page which showed Page 1 of 2 and a Next button which I clicked to no effect...
Do you see anything in your MailChimp account if you go to the bottom of the API Keys page?
Sadly no. "Goose egg. There's no information available."
I don't think the requests are making it out from your server. Do you have any sort of error log?
Yes of course, here's a sample of what I'm getting:
...of course the subscribe form in the footer isn't working as a result. What's more I have an option to opt-in to newsletter subscription for 4 other booking forms on the website which are likely not being processed either.
It's strange that
perch_mailchimp_form()
isn't defined - are you sure everything's uploaded?Does it work locally?
Everything was working perfectly until I dropped the old tables and installed the new mailchimp. I didn't test these locally but everything worked on the live test.
I re-uploaded everything yesterday so I can't imagine anything is missing.
However, I just realised the templates are split into folders now e.g. (subscribers folder with subscribers.html inside).
My footer code is as follows:
and that file still exists inside the /templates/mailchimp folder (my user created folder, not the default app templates one)
Have you updated the template?
I've now updated the template path to forms/subscribe.html, removed the old ones in the template folder and updated the template to include hidden list id in that location. Also noticed in admin that only the Campaigns page for example shows the 'Campaigns are still updating' message, which the others do not.
The form submit but nothing is sent to MailChimp.
I also uploaded the new app files again.
Template code:
Any further suggestions? I'd consider rolling back as v2 seemed to be working ok but would obviously prefer the new API in use.
Thanks for your perseverance.
Are you still getting the error about the function not existing?
No, I've just reloaded and tried submitting via the template above and got no errors - so that 'appears' to be fixed.