Drupal MailChimp module /admin/config not accessible with error

Error when accessing administration config of MailChimp module in Drupal:

Message ParseError: syntax error, unexpected 'Config' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in Composer\Autoload\includeFile() (line 20 of /var/www/html/web/modules/contrib/mailchimp/src/ClientFactory.php)
  • Downloaded latest module version
  • Error when accessing the module's admin/config
  • Upgraded/Switched PHP versions to 7.4, did not work
  • Downgraded to previous module version, worked
  • Downloaded latest module version
  • Error when accessing the module's admin/config
  • Upgraded/Switched PHP versions to 7.4, did not work
  • Downgraded to previous module version, worked

Message ParseError Drupal Mailchimp

Drupal MailChimp module error downgrade version

To integrate MailChimp with Drupal 8/9:

  1. Create MailChimp API Key,
  2. Enter MailChimp API key inĀ /admin/config/services/mailchimp

To create a simple MailChimp sign-up by email form in Drupal 8/9:

  1. Login to MailChimp account > Go to sign-up forms
  2. Embedded forms > Unstyled > (so you can custom style your own e.g. by CSS)
  3. Include Form Title - Sign up to the OIC Newsletter
  4. Show only required fields
  5. Show format options
By: Jerome Esperanza
In:
Jerome Esperanza's picture
Jerome Esperanza

Let us help you create a practical and winning marketing strategy to boost a cost-effective online presence and search visibility here. WebMedia is a digital marketing agency in Metro Manila, Philippines with a seasoned team of experts and specialists. We specialize in web design, development, Google and general search optimization (SEO), and online marketing in general.

Leave a Comment

All fields with * are required.

Training courses for website design, SEO and digital marketing in Manila, Philippines

Get in touch with us!

Telephone: (+63 2) 7625-6994 | (+63 2) 8632-1748
Mobile: (Globe) +63 945 217-3344
E-mail: info@webmedia.com.ph

start typing and press enter to search