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

Issue fork sharethis-3472000

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anwar_max created an issue. See original summary.

anwar_max’s picture

Status: Active » Needs review
anwar_max’s picture

Assigned: anwar_max » Unassigned
bramdriesen’s picture

Status: Needs review » Needs work

We can't just change this, we need to update the versions to a minimum of 10.2.0. See: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Co...

anwar_max’s picture

Status: Needs work » Needs review