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.
I installed the newest API libraries (v1.06) and Mailchimp module 7.x-4.7 which states "Updated library version to 1.0.5; now supports PHP 5.4 (previously required 5.5)" but I still get the error This module requires PHP version 5.5.* and is incompatible with PHP version 5.4.40. Upon viewing the mailchimp.info file I noticed on the php line it still had 5.5. I changed that to 5.4 and the module loaded successfully and the error went away. Just wanted to let someone now.
Comments
Comment #3
ruscoe CreditAttribution: ruscoe at ThinkShout commentedThanks for catching that!
Comment #4
amorton CreditAttribution: amorton commentedNo problem. I forgot to add in my initial post that I also had to modify line 138 of the Mailchimp.php api library file from $this->use_curl = version_compare(phpversion(), '5.5.0', '<'); to $this->use_curl = version_compare(phpversion(), '5.4.0', '<');
Ann
Comment #5
b_willems CreditAttribution: b_willems commentedHi having similar issues, not resolved with steps outlined above.
I have a site on PHP 5.4.43. Without edits I get the issue amorton points to.
Taking the steps above, editing .info and Mailchimp.php in libraries to resolve, but then form submissions give me the error: "Warning: json_encode() expects at most 2 parameters, 3 given in GuzzleHttp\json_encode() (line 322 of .../sites/all/libraries/mailchimp/vendor/guzzlehttp/guzzle/src/functions.php)."
IF I just edit the .info file, the original error (about 5.5.*) goes away, but on a form submission on the front end, I get a php cURL error: "Notice: Undefined property: stdClass::$detail in Mailchimp\MailchimpCURLClient->request() (line 98 of .../sites/all/libraries/mailchimp/src/MailchimpCURLClient.php)".
Comment #7
bib_boy CreditAttribution: bib_boy commentedHi @b_willems
I also did what you tried. I'm still getting:
"Notice: Undefined property: stdClass::$detail in Mailchimp\MailchimpCURLClient->request() (line 98 of .../sites/all/libraries/mailchimp/src/MailchimpCURLClient.php)".
with this I'm also getting:
"There was a problem with your newsletter signup..."
Incidentally the mail does get sent! But hopeless for users when signing up.
I tried the fix here https://www.drupal.org/node/2844022#comment-11870892 and then tried the fix above by Ann.
I now get a fatal errror:
Fatal error: Call to undefined function GuzzleHttp\Handler\curl_reset() in /sites/all/libraries/mailchimp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 78
I'm using 7.4dev and mailchimp library 1.05
Comment #8
bib_boy CreditAttribution: bib_boy commentedUpdate
I installed mailchimp library 1.06 and now it works without error.
phew!