- Issue created by @cmcnamee
- 🇮🇳India asarfaraz
Apply the patch mentioned here 🐛 TypeError when Cloning Menu Needs review
- Status changed to Closed: duplicate
over 1 year ago 10:31am 17 October 2023
The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\entity_clone\Form\EntityCloneForm::__construct(), 5 passed in /app/web/modules/contrib/menu_link_clone/src/Form/EntityMenuLinkCloneForm.php on line 63 and exactly 8 expected in Drupal\entity_clone\Form\EntityCloneForm->__construct() (line 110 of modules/contrib/entity_clone/src/Form/EntityCloneForm.php).
Drupal\entity_clone\Form\EntityCloneForm->__construct(Object, Object, Object, Object, Object) (Line: 63)
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: 58)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
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: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
1. Install the module
2. Clear all caches
3. Go to /admin/structure/menu and choose "Clone" from operations menu of the menu I wanted to clone.
4. Get error.
Closed: duplicate
3.2
User interface
Apply the patch mentioned here 🐛 TypeError when Cloning Menu Needs review