Just tried to update the module via Drush 6.2 in a Drupal 7.39 website, installation fails and site becomes unusable:

PHP Parse error: syntax error, unexpected '[' in /var/www/html/sites/all/modules/mailchimp/mailchimp.module on line 1452
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: syntax error, unexpected '[' in /var/www/html/sites/all/modules/mailchimp/mailchimp.module, line 1452
The external command could not be executed due to an application error. [error]

Had to rollback to version 3.4 to restore normal functionality of the web site

Comments

finetuning created an issue. See original summary.

Keith Caulkins’s picture

I'm experiencing this same problem.
Here's the code on the line:
if (['mailchimp_cron'] == TRUE) {

I think it's either meant to be
variable_get('mailchimp_cron')
or
$form['mailchimp_cron']

  • jami committed c70efa3 on 7.x-3.x
    Issue #2566295: PHP unrecoverable error after v3.5 upgrade
    
Greg Boggs’s picture

Status: Active » Fixed

Thank you for the quick report. This has been fixed and release 3.6 is now available.

Status: Fixed » Closed (fixed)

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