Closed (fixed)
Project:
DocCheck Basic
Version:
8.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2020 at 14:43 UTC
Updated:
12 Nov 2020 at 16:34 UTC
Jump to comment: Most recent
When trying to enable the DocCheck block in Structure > Block layout, I do get the following error:
TypeError: Argument 4 passed to Drupal\doccheck_basic\Plugin\Block\FormBlock::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\monolog\Logger\MonologLoggerChannelFactory given, called in /web/modules/contrib/doccheck_basic/src/Plugin/Block/FormBlock.php on line 134 in Drupal\doccheck_basic\Plugin\Block\FormBlock->__construct() (line 100 of /web/modules/contrib/doccheck_basic/src/Plugin/Block/FormBlock.php)
Use LoggerChannelFactoryInterface instead of LoggerChannelFactory in the constructor.
Comments
Comment #2
sleitner commented@larskleiner please use the latest dev version. Logger has been replaced after your last patch.
Comment #3
larskleiner commentedComment #4
larskleiner commentedTrue the error goes away once I update to the latest dev version, thanks!
Comment #5
sleitner commentedNow you can use the 1.9-beta1 as well