TypeError: Argument 4 passed to Drupal\mailchimp\ClientFactory::__construct() must be an instance of Drupal\Core\State\State, instance of Drupal\webprofiler\State\StateWrapper given

Created on 5 May 2023, about 1 year ago
Updated 21 June 2024, 7 days ago

Problem/Motivation

Module works well on website without problems, but after enabling Web Profiler module - it shows fatal error on all pages:

TypeError: Argument 4 passed to Drupal\mailchimp\ClientFactory::__construct() must be an instance of Drupal\Core\State\State, instance of Drupal\webprofiler\State\StateWrapper given, called in /var/www/html/htdocs/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\mailchimp\ClientFactory->__construct() (line 65 of modules/contrib/mailchimp/src/ClientFactory.php).

Steps to reproduce

  • enable both mailchimp and webprofiler modules
🐛 Bug report
Status

Fixed

Version

2.2

Component

General

Created by

🇮🇹Italy emanuelrighetto Verona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024