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

amorton created an issue. See original summary.

  • ruscoe committed c3668fb on 7.x-4.x
    Issue #2846462 by amorton: This module requires PHP version 5.5.* and is...
ruscoe’s picture

Status: Active » Fixed

Thanks for catching that!

amorton’s picture

No 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

b_willems’s picture

Hi 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)".

Status: Fixed » Closed (fixed)

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

bib_boy’s picture

Hi @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

bib_boy’s picture

Update

I installed mailchimp library 1.06 and now it works without error.

phew!