After install 8.x-2.0, 8.x-1.0, devs, on /admin/reports/dblog-filter chash site

public function buildForm(array $form, FormStateInterface $form_state) { //return;
• Warning: Invalid argument supplied for foreach() in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 100 of core/lib/Drupal/Core/Render/Element/Checkboxes.php).
Drupal\Core\Render\Element\Checkboxes::valueCallback(Array, , Object)
call_user_func_array(Array, Array) (Line: 1275)
Drupal\Core\Form\FormBuilder->handleInputElement('dblog_filter_settings', Array, Object) (Line: 992)
Drupal\Core\Form\FormBuilder->doBuildForm('dblog_filter_settings', Array, Object) (Line: 1062)
Drupal\Core\Form\FormBuilder->doBuildForm('dblog_filter_settings', Array, Object) (Line: 563)
Drupal\Core\Form\FormBuilder->processForm('dblog_filter_settings', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
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: 57)
Drupal\advban\AdvbanMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

only after import

INSERT INTO `config` (`collection`, `name`, `data`) VALUES
('', 'dblog_filter.settings', 0x613a323a7b733a31303a226c6f675f76616c756573223b733a32343a22736d74707c696e666f0d0a6c6f63616c657c6e6f74696365223b733a31353a2273657665726974795f6c6576656c73223b613a383a7b733a393a22656d657267656e6379223b733a393a22656d657267656e6379223b733a353a22616c657274223b733a353a22616c657274223b733a383a22637269746963616c223b733a383a22637269746963616c223b733a353a226572726f72223b733a353a226572726f72223b733a373a227761726e696e67223b733a373a227761726e696e67223b733a363a226e6f74696365223b733a363a226e6f74696365223b733a343a22696e666f223b733a343a22696e666f223b733a353a226465627567223b733a353a226465627567223b7d7d);

/admin/reports/dblog-filter is OK
PHP:7.1 D:8.8.5

CommentFileSizeAuthor
#3 fix-warnigng--3137227.patch697 bytesMykolaVeryha
Command icon 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

Promo-IL created an issue. See original summary.

promo-il’s picture

Issue summary: View changes
MykolaVeryha’s picture

StatusFileSize
new697 bytes
MykolaVeryha’s picture

Status: Active » Needs review
joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

There is whitespace issues with the patch (spaces not tabs) @Mykola Veryha but the idea is solid.

hugovk’s picture

Another RTBC:

Also reproducible with DBLog Filter 8.x-2.1 on Drupal 9.3.6.

I can confirm this patch fixes it.

There's no problem with whitespace, in that tabs were used for to indent these lines before and the patch retains them.

(The file itself mixes tabs and spaces, so could be tidied up, but no reason to delay merging this.)

Please could this be merged?

Thanks!

phily’s picture

Patch #3 works for me using Drupal 9.3.12 and DB Log Filter 2.1.0
Thanks

harika gujjula’s picture

Assigned: promo-il » Unassigned
Status: Reviewed & tested by the community » Fixed

Thanks For the patch and Testing.

harika gujjula’s picture

Status: Fixed » Closed (fixed)