Issue with Redirect 404 module

Created on 15 February 2024, about 1 year ago
Updated 22 February 2024, about 1 year ago

Hello martin

I have Install this module and it given an error when the Redirect 404 module is present

TypeError: Drupal\module_usage\Services\ModuleUsageService::__construct(): Argument #1 ($logger) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /var/www/html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in /var/www/html/modules/contrib/module_usage/src/Services/ModuleUsageService.php on line 79 #0 /var/www/html/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\module_usage\Services\ModuleUsageService->__construct(Object(Drupal\redirect_404\Render\Redirect404LogSuppressor), Object(Drupal\Core\Extension\ModuleExtensionList), Object(Drupal\Core\Render\Renderer), Object(Drupal\Core\State\State), Object(Drupal\module_usage\Services\QueryService))
#1 /var/www/html/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'module_usage.us...')
#2 /var/www/html/core/lib/Drupal.php(197): Drupal\Component\DependencyInjection\Container->get('module_usage.us...')
#3 /var/www/html/modules/contrib/module_usage/module_usage.install(14): Drupal::service('module_usage.us...')
#4 [internal function]: module_usage_install(false)
#5 /var/www/html/core/lib/Drupal/Core/Extension/ModuleHandler.php(400): call_user_func_array(Object(Closure), Array)
#6 /var/www/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php(357): Drupal\Core\Extension\ModuleHandler->invoke('module_usage', 'install', Array)
#7 /var/www/html/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#8 /var/www/html/vendor/drush/drush/src/Commands/pm/PmCommands.php(102): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#9 [internal function]: Drush\Commands\pm\PmCommands->install(Array, Array)
#10 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#11 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#14 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#21 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#22 /var/www/html/vendor/bin/drush(119): include('/var/www/html/v...')
#23 {main}
TypeError: Drupal\module_usage\Services\ModuleUsageService::__construct(): Argument #1 ($logger) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /var/www/html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\module_usage\Services\ModuleUsageService->__construct() (line 79 of /var/www/html/modules/contrib/module_usage/src/Services/ModuleUsageService.php).

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024