Warning: foreach() argument must be of type array|object, null given in Drupal\ckeditor_bs_grid\Plugin\CKEditorPlugin\BsGrid->settingsForm() (line 110 of modules/contrib/ckeditor_bs_grid/src/Plugin/CKEditorPlugin/BsGrid.php).

Created on 18 August 2022, almost 2 years ago
Updated 18 July 2023, 12 months ago

Problem/Motivation

There's a warning when there's no breakpoints registered on the system:

Warning: foreach() argument must be of type array|object, null given in Drupal\ckeditor_bs_grid\Plugin\CKEditorPlugin\BsGrid->settingsForm() (line 110 of modules/contrib/ckeditor_bs_grid/src/Plugin/CKEditorPlugin/BsGrid.php).
Drupal\ckeditor_bs_grid\Plugin\CKEditorPlugin\BsGrid->settingsForm(Array, Object, Object) (Line: 190)
Drupal\ckeditor\CKEditorPluginManager->injectPluginSettingsForm(Array, Object, Object) (Line: 221)
Drupal\ckeditor\Plugin\Editor\CKEditor->buildConfigurationForm(Array, Object) (Line: 177)
editor_form_filter_format_form_alter(Array, Object, 'filter_format_edit_form') (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'filter_format_edit_form') (Line: 835)
Drupal\Core\Form\FormBuilder->prepareForm('filter_format_edit_form', Array, Object) (Line: 279)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
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: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
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: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

I added a patch to solve it.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil aluzzardi Pelotas, RS

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024