Problem/Motivation

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)

Proposed resolution

Use LoggerChannelFactoryInterface instead of LoggerChannelFactory in the constructor.

Comments

larskleiner created an issue. See original summary.

sleitner’s picture

@larskleiner please use the latest dev version. Logger has been replaced after your last patch.

larskleiner’s picture

Version: 8.x-1.x-dev » 8.x-1.8
larskleiner’s picture

Status: Active » Fixed

True the error goes away once I update to the latest dev version, thanks!

sleitner’s picture

Now you can use the 1.9-beta1 as well

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.