ArgumentCountError: Too few arguments to function Drupal\acquia_contenthub\Client\ClientMetaDataBuilder::__construct()

Created on 11 October 2024, 2 months ago

Problem/Motivation

Using Drupal 10.3.6 and installing drupal/acquia_contenthub 3.6 an error is thrown when I access my site:

ArgumentCountError: Too few arguments to function Drupal\acquia_contenthub\Client\ClientMetaDataBuilder::__construct(), 4 passed in /app/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 5 expected in /app/docroot/modules/contrib/acquia_contenthub/src/Client/ClientMetaDataBuilder.php on line 74 #0 /app/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(261): Drupal\acquia_contenthub\Client\ClientMetaDataBuilder->__construct(Object(Drupal\acquia_contenthub\EventSubscriber\CdfAttributes\AchVersionAttribute), Object(Drupal\acquia_contenthub\EventSubscriber\CdfAttributes\ValidSslAttribute), Object(Drupal\acquia_contenthub\PubSubModuleStatusChecker), Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))

Steps to reproduce

Install drupal/acquia_contenthub 3.6 via composer in a Drupal 10.3.6.
Access your site or try to clear your cache using drush cr.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.6

Component

Code

Created by

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

Comments & Activities

  • Issue created by @rodetrev
  • 🇮🇳India mohd sahzad

    Hello @rodetrev,

    I have installed the Acquia Content Hub module version 3.6.x on Drupal version 10.3.6, but I am unable to reproduce the error you mentioned. Could you please provide more detailed steps to help me replicate the issue?

    Thank you!

  • 🇮🇳India n4r3n Goa

    @rodetrev can you try clearing cache from site UI?

  • 🇮🇳India kirti_garg Delhi

    @rodetrev, we tried reproducing the issue on 4 diff environments through multiple permutation and combinations. However, we were unable to replicate it. This appears to be a rare intermittent issue. Therefore, closing this ticket. In case if you face this issue again, feel free to create a new ticket with detailed steps and Drupal, Drush, PHP, Acquia ContentHub and ContentHub Library versions.

Production build 0.71.5 2024