- Issue created by @Shiv_Sharma
- 🇮🇳India Rajan Kumar
I have fixed this issue and latest code is committed in branch.
- Status changed to Fixed
about 1 year ago 6:34am 16 August 2023
The website encountered an unexpected error. Please try again later.
TypeError: PDOStatement::fetchAll(): Argument #2 must be of type int, string given in PDOStatement->fetchAll() (line 294 of core/lib/Drupal/Core/Database/StatementWrapperIterator.php).
Drupal\Core\Database\StatementWrapperIterator->fetchAll(7, 'id') (Line: 139)
Drupal\Core\Database\StatementWrapperIterator->fetchCol('id') (Line: 46)
block_extras_form_alter(Array, Object, 'block_form') (Line: 545)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'block_form') (Line: 840)
Drupal\Core\Form\FormBuilder->prepareForm('block_form', Array, Object) (Line: 284)
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: 583)
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: 166)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
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: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
after module install when we try to configure the block getting above error.
In block_extras_form_alter need the check the db query
Fixed
1.0
Code
I have fixed this issue and latest code is committed in branch.