Problem/Motivation
When loading the page `admin/config/system/siteimprove` this error appears:
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: 1278)
Drupal\Core\Form\FormBuilder->handleInputElement('siteimprove_settings_form', Array, Object) (Line: 1001)
Drupal\Core\Form\FormBuilder->doBuildForm('siteimprove_settings_form', Array, Object) (Line: 1071)
Drupal\Core\Form\FormBuilder->doBuildForm('siteimprove_settings_form', Array, Object) (Line: 1071)
Drupal\Core\Form\FormBuilder->doBuildForm('siteimprove_settings_form', Array, Object) (Line: 1071)
Drupal\Core\Form\FormBuilder->doBuildForm('siteimprove_settings_form', Array, Object) (Line: 575)
Drupal\Core\Form\FormBuilder->processForm('siteimprove_settings_form', Array, Object) (Line: 321)
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: 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)
Steps to reproduce
Load the admin form on `admin/config/system/siteimprove`.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
aritrika.d commentedi am using drupal 8.9.10 and module version 8.x-1.x ,couldn't reproduce the issue.admin/config/system/siteimprove this page load works fine
Comment #3
mohit.bansal623 commentedHi @mjmorley.
I also debug this issue on Drupal version 8.9.7.
PHP version - 7.3
MySQL version - 5.7
No error prompted as reported above. Attaching the screenshot for the same.
Comment #4
bartvig commentedI can't reproduce on a standard Drupal 8.9.11 with a freshly installed Siteimprove module. I need some more information to reproduce the problem.
Did you upgrade the module from an earlier version when you experienced the problem?
What version of the module did you use before?
Comment #5
asigrist commentedI've got the same error/issue happening when accessing /admin/config/system/siteimprove. I'm on Drupal 8.9.13 and Siteimprove 8.x-1.10. I did just update the module yesterday from 8.x-1.8, but the error was the same before and after the update.
Comment #6
bartvig commentedI could reproduce the error, when I installed version 1.7 of the module, upgraded to version 1.8 but didn't run updates (i.e.
/update.phpin the url ordrush updb). When I executeddrush updb, the settings were updated and the warning disappeared.@asigrist Did you remember to run updates?
Comment #7
bartvig commented