Hey everyone,

When registering a new user or updating a user's profile information, it's sometimes causing my user edit pages and site registration page to be inaccessible on a site-wide basis for 15-30 minutes. Likewise, in my Mailchimp account it's causing the Lists section of my account to be inaccessible for the same amount of time. Basically, the pages continually try to load, but can't. The only remedy has been to turn off the Mailchimp module and give it some time to reset.

Note that I've set the options to have Mailchimp newsletter subscription info included on the site registration page and the user edit page. I'm also updating Mailchimp immediately as opposed to waiting for cron to run.

Additionally, I'm getting the following error in my log messages:

Bad Response. Got This:
Warning: strtotime() expects parameter 1 to be string, array given in /var/web3chroot/mailchimp/home/mailchimp/4.2.0/app/models/List/Merge.php on line 298
b:1;

This appears to be related to sending a "Date" profile field to a Mailchimp "date" field. In my case, I have users submit their birthday. Although this field can be successfully transferred to mailchimp upon registration, in some instances when registering or updating that field on the user edit page, it causes the above error message. When this error occurs the following date "01/01/1970" shows up in the field on my mailchimp account.

Any ideas as to the cause?

Thanks,
Ben

Comments

BenK’s picture

Hey LouBabe,

Hope all is well with you.... Any ideas as to why I'm getting the error sending date fields to Mailchimp? I'd love to use Mailchimp's autoresponder feature, to send users a Happy Birthday e-mail, but I can't until I figure out how to get date fields working properly.

Any insights?

Thanks,
Ben

levelos’s picture

Hi Ben - So I've tracked down the problem, although not sure about the timeouts you're getting. Perhaps MC fixed that, as the error message is actually from their code on their server. Anyways, Profile module stores dates as an array, where as all other profile fields are strings, and that's why it's not coming across correctly. Very strange, not sure why it does that. Anyways, exploring ways to solve it, as unfortunately, there's no way to no it's a date other than the fact that it's an array. Stay tuned or suggestions welcome.

levelos’s picture

Assigned: Unassigned » levelos
Status: Active » Fixed

Ok, should be set now. But I'm not happy with the approach I took. Basically tested for profile values that were arrays, other than the roles, and converted to a valid date string. Also correctly now passes registration, login, and access datetime fields.

BenK’s picture

Thanks LouBabe! I'll test it out and report back.

--Ben

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.