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, over 1 year ago
Updated 5 July 2024, 5 months 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.71.5 2024