On a site with mailchimp_lists activated (so newsletters are accessibles from users' profiles): when connected as a regular user already subscribed to some mailchimp newsletters, I can access my /user/*/edit page to modify my profile.

If I change my e-mail address from this screen (but do not uncheck mailing lists I'm already subscribed to) and submit the form, the behaviour is okay to me as the old e-mail address getd unsubscribed from mailchimp, and the new one gets subscribed instead.

However, the following PHP error pops:

Warning: fread(): Length parameter must be greater than 0 in GuzzleHttp\Psr7\Stream->read() (line 211 of /var/www/html/d7/sites/all/libraries/mailchimp/vendor/guzzlehttp/psr7/src/Stream.php).

Comments

pacproduct created an issue. See original summary.

samuel.mortenson’s picture

Status: Active » Postponed (maintainer needs more info)

@pacproduct Do you have a backtrace for this error? Since the error you posted happened in Guzzle, it could have been triggered by any Mailchimp API object which makes this hard to pin down.

pacproduct’s picture

I'm afraid I do not have the sources of this at hand now. It was a POC, and as such we did not spend much time invedtigating this ^^'

If no-one else faced this issue, maybe it can be closed for now.

samuel.mortenson’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Thanks for the quick reply @pacproduct - I'll close this out.