Problem/Motivation

When trying to access the module configuration for I got "The website encountered an unexpected error. Try again later."

Upon examining the logs I see this error:

TypeError: Drupal\auto_translation\Form\AutoTranslatorSettingsForm::__construct(): Argument #6 ($moduleHandler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /var/www/html/web/modules/contrib/auto_translation/src/Form/AutoTranslatorSettingsForm.php on line 63 in Drupal\auto_translation\Form\AutoTranslatorSettingsForm->__construct() (line 51 of /var/www/html/web/modules/contrib/auto_translation/src/Form/AutoTranslatorSettingsForm.php).

I've tried 1.4.11, 1.4.10 and 1.4.9 releases and got the same result.

Drupal version on my site is: 10.4.5

Steps to reproduce

Install the module (tried both via drush and from the UI), go to configuration form (/admin/auto-translation)

Comments

patbsh created an issue. See original summary.

bigbabert’s picture

Assigned: Unassigned » bigbabert

  • zee86 committed 44ff5da8 on 1.0.x
    Issue #3515873 by patbsh, bigbabert: Error on configuration form
    

bigbabert credited zee86.

bigbabert’s picture

Version: 1.4.11 » 1.4.12
Status: Active » Fixed
bigbabert’s picture

Hi @patbsh,

thanks for the feedback, fixed in 1.4.12, please have a test and move the status if ok,

Best regards

patbsh’s picture

Works perfect, it was also probably due to unrun hook on my end and a build would've fixed it. Thank you for a very prompt response.

patbsh’s picture

Status: Fixed » Closed (fixed)