- Issue created by @Rajab Natshah
- Merge request !25Issue #3502237: Fix type error in layout builder perms access manager logger channel factory with LoggerChannelFactoryInterface → (Open) created by Rajab Natshah
- 🇯🇴Jordan Rajab Natshah Jordan
Attached a static
layout_builder_perms--2025-01-25--3502237--mr-25.patch
file up to this point for MR25
To be used with the Composer Patches - 🇨🇭Switzerland das-peter
Encountered this issue too.
Patch fixed the issue.
From what I gather using the concreteLoggerChannelFactory
instead an interface was an outlier when checking the constructor.
Previously required concrete implementation actually implements the interface. So unless there's some "unsanctioned" use something that only the concrete implementations provides this should be just fine :) - 🇩🇪Germany guido_s Cologne
It also needs to be changed in the submodules like here:
TypeError: Drupal\layout_builder_perms_node\Plugin\Derivative\NodeLayoutBuilderPermissions::__construct(): Argument #3 ($logger_factory) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /app/web/modules/contrib/layout_builder_perms/modules/layout_builder_perms_node/src/Plugin/Derivative/NodeLayoutBuilderPermissions.php on line 61 in Drupal\layout_builder_perms_node\Plugin\Derivative\NodeLayoutBuilderPermissions->__construct() (line 51 of modules/contrib/layout_builder_perms/modules/layout_builder_perms_node/src/Plugin/Derivative/NodeLayoutBuilderPermissions.php).
- 🇵🇹Portugal developer-rocha
I'm also experiencing the same issue when attempting to enable the layout_builder_perms_block_types_per_layout submodule. The site breaks, and the error log shows the same TypeError related to the InlineBlockTypeInLayoutPermissions class.
TypeError: Drupal\layout_builder_perms_block_types_per_layout\Plugin\Derivative\InlineBlockTypeInLayoutPermissions::__construct(): Argument #3 ($logger_factory) must be of type Drupal\Core\Logger\LoggerChannelFactory, Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /var/www/html/ibfd/web/modules/contrib/layout_builder_perms/modules/layout_builder_perms_block_types_per_layout/src/Plugin/Derivative/InlineBlockTypeInLayoutPermissions.php on line 61 in Drupal\layout_builder_perms_block_types_per_layout\Plugin\Derivative\InlineBlockTypeInLayoutPermissions->__construct() (line 51 of /var/www/html/ibfd/web/modules/contrib/layout_builder_perms/modules/layout_builder_perms_block_types_per_layout/src/Plugin/Derivative/InlineBlockTypeInLayoutPermissions.php).
Drupal version: 10.4.5
module: 2.2.0