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.
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
Comment #2
Keith Caulkins CreditAttribution: Keith Caulkins commentedI'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']
Comment #4
Greg BoggsThank you for the quick report. This has been fixed and release 3.6 is now available.