Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
samuel.mortenson@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.
Comment #3
pacproduct CreditAttribution: pacproduct commentedI'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.
Comment #4
samuel.mortensonThanks for the quick reply @pacproduct - I'll close this out.