TypeError when Cloning Menu

Created on 3 April 2020, over 4 years ago
Updated 15 March 2023, over 1 year ago

I get the error below when I try to clone a menu.

I'm using:

  • Menu Link Clone 3.2
  • Entity Clone 1.0 beta 3

Other contrib modules that i'm using related to menu's, but I don't think they have anything to do with this error:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 6 passed to Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm::__construct() must be an instance of Drupal\Component\Uuid\Php, instance of Drupal\Component\Uuid\Com given, called in D:\CustomDev\Pantheon\socmut-4-eu\web\modules\contrib\menu_link_clone\src\Form\EntityMenuLinkCloneForm.php on line 42 in Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm->__construct() (line 62 of modules\contrib\menu_link_clone\src\Form\EntityMenuLinkCloneForm.php).

Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm->__construct(Object, Object, Object, Object, Object, Object) (Line: 42)
Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm::create(Object) (Line: 28)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('\Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm') (Line: 48)
Drupal\Core\Controller\HtmlFormController->getFormObject(Object, '\Drupal\menu_link_clone\Form\EntityMenuLinkCloneForm') (Line: 76)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 694)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
🐛 Bug report
Status

Needs review

Version

3.2

Component

Code

Created by

🇧🇪Belgium FreMun

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024