Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Steps to reproduce
Install Redirect alpha1.
Instal Views Natural Sort
Install Redirect alpha5.
Run drush dbup.
[notice] Executing redirect_update_8105 TypeError: Argument 4 passed to Drupal\views_natural_sort\ViewsNaturalSortService::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /var/www/craft-council/build/core/lib/Drupal/Component/DependencyInjection/Container.php on line 296 in /var/www/craft-council/build/modules/contrib/views_natural_sort/src/ViewsNaturalSortService.php on line 23 #0 /var/www/craft-council/build/core/lib/Drupal/Component/DependencyInjection/Container.php(296): Drupal\views_natural_sort\ViewsNaturalSortService->__construct(Object(Drupal\views_natural_sort\Plugin\IndexRecordContentTransformationManager), Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\redirect_404\Render\Redirect404LogSuppressor), Object(Drupal\Core\Database\Driver\mysql\Connection), Object(Drupal\views\ViewsData), Object(Drupal\Core\Queue\QueueFactory), Object(Drupal\Core\Queue\QueueWorkerManager)) #1 /var/www/craft-council/build/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'views_natural_s...') #2 /var/www/craft-council/build/core/lib/Drupal.php(158): Drupal\Component\DependencyInjection\Container->get('views_natural_s...') #3 /var/www/craft-council/build/modules/contrib/views_natural_sort/views_natural_sort.module(86): Drupal::service('views_natural_s...') #4 [internal function]: views_natural_sort_entity_insert(Object(Drupal\views\Entity\View), 'view') #5 /var/www/craft-council/build/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('views_natural_s...', Array) #6 /var/www/craft-council/build/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(371): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array) #7 /var/www/craft-council/build/core/lib/Drupal/Core/Entity/EntityStorageBase.php(470): Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('insert', Object(Drupal\views\Entity\View)) #8 /var/www/craft-council/build/core/lib/Drupal/Core/Entity/EntityStorageBase.php(395): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\views\Entity\View), false) #9 /var/www/craft-council/build/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(259): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\views\Entity\View)) #10 /var/www/craft-council/build/core/lib/Drupal/Core/Entity/Entity.php(364): Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\views\Entity\View)) #11 /var/www/craft-council/build/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(637): Drupal\Core\Entity\Entity->save() #12 /var/www/craft-council/build/core/lib/Drupal/Core/Config/ConfigInstaller.php(330): Drupal\Core\Config\Entity\ConfigEntityBase->save() #13 /var/www/craft-council/build/core/lib/Drupal/Core/Config/ConfigInstaller.php(134): Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array) #14 /var/www/craft-council/build/modules/contrib/features/src/ProxyClass/FeaturesConfigInstaller.php(79): Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'redirect_404') #15 /var/www/craft-council/build/core/lib/Drupal/Core/Extension/ModuleInstaller.php(248): Drupal\features\ProxyClass\FeaturesConfigInstaller->installDefaultConfig('module', 'redirect_404') #16 /var/www/craft-council/build/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true) #17 /var/www/craft-council/build/modules/contrib/redirect/redirect.install(181): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) #18 /usr/local/share/drush/src/Commands/core/UpdateDBCommands.php(141): redirect_update_8105(Array) #19 /usr/local/share/drush/includes/batch.inc(232): Drush\Commands\core\UpdateDBCommands->updateDoOne('redirect', 8105, Array, Object(DrushBatchContext)) #20 /usr/local/share/drush/includes/batch.inc(180): _drush_batch_worker() #21 /usr/local/share/drush/includes/batch.inc(95): _drush_batch_command('101') #22 /usr/local/share/drush/src/Commands/core/UpdateDBCommands.php(99): drush_batch_command('101') #23 [internal function]: Drush\Commands\core\UpdateDBCommands->updatedbProcess('101', Array) #24 /usr/local/share/drush/vendor/consolidation/annotated-command/src/CommandProcessor.php(180): call_user_func_array(Array, Array) #25 /usr/local/share/drush/vendor/consolidation/annotated-command/src/CommandProcessor.php(129): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData)) #26 /usr/local/share/drush/vendor/consolidation/annotated-command/src/CommandProcessor.php(104): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData)) #27 /usr/local/share/drush/includes/annotationcommand_adapter.inc(234): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData)) #28 /usr/local/share/drush/includes/command.inc(199): annotationcommand_adapter_process_command('101') #29 /usr/local/share/drush/src/Boot/BaseBoot.php(73): drush_dispatch(Array) #30 /usr/local/share/drush/includes/preflight.inc(93): Drush\Boot\BaseBoot->bootstrap_and_dispatch() #31 /usr/local/share/drush/drush.php(11): drush_main() #32 {main} TypeError: Argument 4 passed to Drupal\views_natural_sort\ViewsNaturalSortService::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /var/www/craft-council/build/core/lib/Drupal/Component/DependencyInjection/Container.php on line 296 in Drupal\views_natural_sort\ViewsNaturalSortService->__construct() (line 23 of /var/www/craft-council/build/modules/contrib/views_natural_sort/src/ViewsNaturalSortService.php). [error] Drush command terminated abnormally due to an unrecoverable error. [success] Cache rebuild complete. [success] Finished performing updates.
Comment | File | Size | Author |
---|---|---|---|
#2 | views_natural_sort-redirect_logger_fatal-2895645-2.patch | 1.32 KB | generalredneck |
Comments
Comment #2
generalredneckAfter reading some of the related issues... example #2853175: Update to redirect alpha-4 cause error when try to create media entity. I apparently did the same thing that media did... I used the wrong type hint. here's a patch
Comment #5
generalredneck