Skip to content

Error Analysing Code #412

@Dave-LeDev

Description

@Dave-LeDev

Notes: Similar to this issue, but shared here for enough differences found with diff checker, and the notice that any code analysis be addressed here instead.

Drupal CMS 11.2.4 (fresh local install on macOS 15.6.1)
Module Builder 1.4.3
nginx/1.28.0
PHP 8.3.25 1GB
10.11.14-MariaDB-ubu2204-log

Generated error upon trying to analyse code after module installation:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=2&op=do_nojs&op=do
StatusText: error
ResponseText: The website encountered an unexpected error. Try again later.TypeError: count(): Argument #1 ($value) must be of type Countable|array, false given in count() (line 1179 of /var/www/html/vendor/drupal-code-builder/drupal-code-builder/Task/Collect/PluginTypesCollector.php). DrupalCodeBuilder\Task\Collect\PluginTypesCollector->addConfigSchemaPrefix() (Line: 317)
DrupalCodeBuilder\Task\Collect\PluginTypesCollector->gatherPluginTypeInfo() (Line: 132)
DrupalCodeBuilder\Task\Collect\PluginTypesCollector->collect() (Line: 143)
DrupalCodeBuilder\Task\Collect->collectComponentDataIncremental() (Line: 241)
Drupal\module_builder\Form\ProcessForm::batchOperation() (Line: 298)
_batch_process() (Line: 139)
_batch_do() (Line: 95)
_batch_page() (Line: 52)
Drupal\system\Controller\BatchController->batchPage()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions