after an upgrade to 1.1.0 version, here is what I got:
AH01071: Got error 'PHP message: TypeError: Argument 5 passed to Drupal\autologout\AutologoutManager::construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /var/www/ehess.dev/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 297 in /var/www/ehess.dev/web/modules/contrib/autologout/src/AutologoutManager.php on line 107 #0 /var/www/ehess.dev/web/core/lib/Drupal/Component/DependencyInjection/Container.php(297): Drupal\autologout\AutologoutManager->construct(Object(Drupal\Core\Extension\ModuleHandler), Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\Core\Messenger\Messenger), Object(Drupal\Core\Session\AccountProxy), Object(Drupal\redirect_404\Render\Redirect404LogSuppressor), Object(Drupal\Core\Session\SessionManager), Object(Drupal\user\UserData), Object(Drupal\Component\Datetime\Time))\n#1 /var/www/ehess.dev/web/core/lib/Drupal/Component/DependencyInjection/Container.php(173): Drupal\Componen...\n'
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | fix_type_hint-3124684.patch | 1.37 KB | tjeerd@ibuildings.nl |
Comments
Comment #2
maxilein commentedGot the same:
The website encountered an unexpected error. Please try again later. D is completely dead.
[php7:notice] [pid 1496] [client ...] TypeError: Argument 5 passed to Drupal\\autologout\\AutologoutManager::__construct() must be an instance of Drupal\\Core\\Logger\\LoggerChannelFactory, instance of Drupal\\redirect_404\\Render\\Redirect404LogSuppressor given, called in /..../core/lib/Drupal/Component/DependencyInjection/Container.php on line 297 in /..../modules/autologout/src/AutologoutManager.php on line 107
#0 /..../core/lib/Drupal/Component/DependencyInjection/Container.php(297): Drupal\\autologout\\AutologoutManager->__construct(Object(Drupal\\Core\\Extension\\ModuleHandler), Object(Drupal\\Core\\Config\\ConfigFactory), Object(Drupal\\Core\\Messenger\\Messenger), Object(Drupal\\Core\\Session\\AccountProxy), Object(Drupal\\redirect_404\\Render\\Redirect404LogSuppressor), Object(Drupal\\Core\\Session\\SessionManager), Object(Drupal\\user\\UserData), Object(Drupal\\Component\\Datetime\\Time))\n
#1 /..../core/lib/Drupal/Component/DependencyInjection/Container.php(173): Drupal\\Component\\DependencyInjection\\Container->createService(Array, 'autologout.mana...')\n
#2 /..../core/lib/Drupal/Component/DependencyInjection/Container.php(487): Drupal\\Component\\DependencyInjection\\Container->get('autologout.mana...', 1)\n
#3 /..../core/lib/Drupal/Component/DependencyInjection/Container.php(237): Drupal\\Component\\DependencyInjection\\Container->resolveServicesAndParameters(Array)\n
#4 /..../core/lib/Drupal/Component/DependencyInjection/Container.php(173): Drupal\\Component\\DependencyInjection\\Container->createService(Array, 'autologout_even...')\n
#5 /..../core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(105): Drupal\\Component\\DependencyInjection\\Container->get('autologout_even...')\n
#6 /..../vendor/symfony/http-kernel/HttpKernel.php(127): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('kernel.request', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent))\n
#7 /..../vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n
#8 /..../core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#9 /..../core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#10 /..../core/modules/ban/src/BanMiddleware.php(50): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#11 /..../modules/httpbl/src/HttpblMiddleware.php(59): Drupal\\ban\\BanMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#12 /..../core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\\httpbl\\HttpblMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#13 /..../core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#14 /..../vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#15 /..../core/lib/Drupal/Core/DrupalKernel.php(708): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n
#16 /..../index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n
#17 {main}, referer: https://..../update.php/results
Comment #3
maxilein commentedComment #4
maxilein commentedthe error is with 8x1.1
Comment #5
tjeerd@ibuildings.nl commentedSame here:
TypeError: Argument 5 passed to Drupal\autologout\AutologoutManager::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\monolog\Logger\MonologLoggerChannelFactory givenComment #6
tjeerd@ibuildings.nl commentedTypehint should probably be on the interface
LoggerChannelFactoryInterfaceComment #7
tjeerd@ibuildings.nl commentedHere's a patch
Comment #8
thibI got the same on 1 website on 4 ...
This is the site for which I tried updating Autologout module before updating Drupal Core 8.8.4 to 8.8.5
For those where it works, I did the Drupal Core update before Autologout. I don't know if it's related ...
For the one where I got error, returning to Autologout 8.x-1.0 solves the problem but it's impossible to run update.php again.
Comment #9
bcizej commented@thib The issue appears in combination with
redirectmodule, specifically theredirect_404submodule.@tjeerdb I reviewed the patch and it looks good, thank you.
Comment #11
boshtian commentedComment #12
boshtian commentedNew release 8.x-1.2 has been tagged that includes the fix.
Comment #13
thib@benjamincizej Ok, I understand, the website with which it doesn't work is the only one with the Redirect module activated ...
Thanks