TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in..

Created on 4 March 2025, about 1 month ago

Getting error when adding clone block

TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in D:\laragon\www\drupal10\web\modules\contrib\layout_builder_block_clone\src\Form\CloneLayoutBlockForm.php on line 314 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 89 of D:\laragon\www\drupal10\web\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php).

Steps to reproduce

1. Install the Layout builder, Layout Builder Block Clone module, and entity clone module.

2. Enable the layout builder in your content type.

3. Create a new block in the layout builder.

4. Click clone block

5. Saving the block will produce an error.

This error is only produced when the entity clone module is used with the Layout Builder Block Clone module

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

🇮🇳India kishan@lnwebworks

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024