Problem/Motivation
When calling `/admin/reports/updates/update` the following error occurs:
ArgumentCountError: Too few arguments to function Drupal\pdf_to_imagefield\Hook\FormHooks::__construct(), 0 passed in /var/www/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php on line 44 and exactly 1 expected in Drupal\pdf_to_imagefield\Hook\FormHooks->__construct() (line 17 of modules/contrib/pdf_to_imagefield/src/Hook/FormHooks.php).
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\pdf_to_imagefield\Hook\FormHooks') (Line: 35)
pdf_to_imagefield_form_alter(Array, Object, 'update_manager_update_form') (Line: 552)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'update_manager_update_form') (Line: 844)
Drupal\Core\Form\FormBuilder->prepareForm('update_manager_update_form', Array, Object) (Line: 285)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 637)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
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: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Issue fork pdf_to_imagefield-3589923
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
daniel.pernold commentedAlso happens to other forms like `/admin/content`
Comment #6
hitchshock@danielpernold thanks!
The Drupal 10 compatibility was missed while providing the last D11 features, like hook attributes. This is a regression of the #3573436: Drupal 11 upgrade path for hooks
Provided compatibility for D10+D11