Problem/Motivation
Internal Server Error occurs when clicking an Add Login Destination button :
TypeError: Argument 2 passed to Drupal\login_destination\Form\LoginDestinationRuleForm::__construct() must be an instance of Drupal\login_destination\Form\LanguageManagerInterface, instance of Drupal\Core\Language\LanguageManager given, called in /var/www/html/web/modules/contrib/login_destination/src/Form/LoginDestinationRuleForm.php on line 53 in Drupal\login_destination\Form\LoginDestinationRuleForm->__construct() (line 42 of /var/www/html/web/modules/contrib/login_destination/src/Form/LoginDestinationRuleForm.php)
#0 /var/www/html/web/modules/contrib/login_destination/src/Form/LoginDestinationRuleForm.php(53): Drupal\login_destination\Form\LoginDestinationRuleForm->__construct(Object(Drupal\Core\Config\Entity\ConfigEntityStorage), Object(Drupal\Core\Language\LanguageManager))
#1 /var/www/html/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php(28): Drupal\login_destination\Form\LoginDestinationRuleForm::create(Object(Drupal\Core\DependencyInjection\Container))
#2 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php(226): Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\\login_de...')
#3 /var/www/html/web/core/lib/Drupal/Core/Entity/HtmlEntityFormController.php(69): Drupal\Core\Entity\EntityTypeManager->getFormObject('login_destinati...', 'add')
#4 /var/www/html/web/core/lib/Drupal/Core/Controller/FormController.php(58): Drupal\Core\Entity\HtmlEntityFormController->getFormObject(Object(Drupal\Core\Routing\RouteMatch), 'login_destinati...')
#5 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3178518-2.patch | 631 bytes | yas |
Comments
Comment #2
yasPlease review the patch. I hope it fixes the issue.
Comment #3
rsvelko commentedComment #5
rsvelko commented