ArgumentCountError: Too few arguments to function

Created on 22 March 2023, almost 2 years ago
Updated 17 October 2023, over 1 year ago

Problem/Motivation

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)

Steps to reproduce

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.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

3.2

Component

User interface

Created by

🇺🇸United States cmcnamee

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

Comments & Activities

Production build 0.71.5 2024