When I activate the module and go to the config screen on a new install of 8.5.2 I get the following Warning:

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: 1269)
Drupal\Core\Form\FormBuilder->handleInputElement('locker_admin_settings', Array, Object) (Line: 986)
Drupal\Core\Form\FormBuilder->doBuildForm('locker_admin_settings', Array, Object) (Line: 1056)
Drupal\Core\Form\FormBuilder->doBuildForm('locker_admin_settings', Array, Object) (Line: 1056)
Drupal\Core\Form\FormBuilder->doBuildForm('locker_admin_settings', Array, Object) (Line: 557)
Drupal\Core\Form\FormBuilder->processForm('locker_admin_settings', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('locker_admin_settings', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
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: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Suggestions?

Comments

Christopher Riley created an issue. See original summary.

  • msajko committed cbb98ca on 8.x-1.x
    Issue #2962501 by msajko: Invalid Argument on config screen
    
msajko’s picture

Status: Active » Fixed

Thank you Christopher Riley special for this reported issue.

The SettingForm was copied for Drupal 7 version so it was time to overwrite it completely.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.