Here is the error:

ArgumentCountError: Too few arguments to function Drupal\add_translation\AddTranslation::__construct(), 3 passed in /opt/drupal/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in Drupal\add_translation\AddTranslation->__construct() (line 58 of modules/contrib/add_translation/src/AddTranslation.php).

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

bisonbleu created an issue. See original summary.

bisonbleu’s picture

Version: 1.0.0 » 1.0.1

This using the latest version in Drupal 9.5.11

viren18febs’s picture

Assigned: Unassigned » viren18febs
viren18febs’s picture

Assigned: viren18febs » Unassigned
Status: Active » Needs review
StatusFileSize
new456 bytes

HI @bisonbleu
i have fixed the issues and added a patch for this, please review.
Thanks

thulenb’s picture

I have the same issue.
The provided patch does not fix this. Getting this error now:

TypeError: Drupal\add_translation\AddTranslation::__construct(): Argument #4 ($loggerFactory) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\add_translation\AddTranslation->__construct() (Zeile 58 in web/modules/contrib/add_translation/src/AddTranslation.php)

thulenb’s picture

Does somebody know how the get this module running? The mentioned error above prevents me from creating node translations.

  • jayprakash01 committed 20bb8407 on 1.0.x
    Issue #3399078 by viren18febs, thulenb: add logger factory with...
jayprakash01’s picture

Version: 1.0.1 » 1.1.0
Status: Needs review » Fixed

Fixed the issue @ThuleNB. Please check now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.