Getting error when trying to install the module with Drupal 11.

Created on 4 September 2024, 4 months ago
Updated 9 September 2024, 4 months ago

Problem/Motivation

Getting below error when I was trying to install the module with Drupal 11.

The website encountered an unexpected error. Try again later.
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/sharethis/src/Form/SharethisConfigurationForm.php on line 74 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Steps to reproduce

Run composer require 'drupal/sharethis:3.0.x-dev@dev'
Enable sharethis module
Goto /admin/config/services/sharethis

Proposed resolution

Pass TypedConfigManagerInterface $typed_config_manager object in constructor as per https://www.drupal.org/node/3404140 change record

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇮🇳India anwar_max

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024