Problem/Motivation

Warning: foreach() argument must be of type array|object, null given in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 113 of core/lib/Drupal/Core/Render/Element/Checkboxes.php).
Drupal\Core\Render\Element\Checkboxes::valueCallback(Array, , Object)
call_user_func_array(Array, Array) (Line: 1285)
Drupal\Core\Form\FormBuilder->handleInputElement('nginx_proxy_settings_form', Array, Object) (Line: 1003)
Drupal\Core\Form\FormBuilder->doBuildForm('nginx_proxy_settings_form', Array, Object) (Line: 1073)
Drupal\Core\Form\FormBuilder->doBuildForm('nginx_proxy_settings_form', Array, Object) (Line: 1073)
Drupal\Core\Form\FormBuilder->doBuildForm('nginx_proxy_settings_form', Array, Object) (Line: 577)
Drupal\Core\Form\FormBuilder->processForm('nginx_proxy_settings_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
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: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
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: 707)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Go to admin/config/system/nginx-proxy-manager-connector/settings

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 Errorlog.png694.29 KBnishant
#3 Visit-path.png51.64 KBnishant
#3 Nginx-latest-version.png19.95 KBnishant
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

elber created an issue. See original summary.

nishant’s picture

Assigned: Unassigned » nishant
nishant’s picture

StatusFileSize
new19.95 KB
new51.64 KB
new694.29 KB

Checked with latest version module and I got the warning in log.
Module Version: 1.0.0-alpha3
Drupal Version: 10.0.9
PHP Version: 8.1.16

Attaching the SS.

nishant’s picture

Assigned: nishant » Unassigned
nishant’s picture

Status: Active » Needs review

Fixed and provided MR25 for the above warning in error log,

Please review.

shiv_sharma’s picture

Status: Needs review » Needs work
elber’s picture

Status: Needs work » Needs review

I will review it.

elber’s picture

Status: Needs review » Reviewed & tested by the community

I reviewed it using drupal 10.1 and Drupal 9.5 versions

it worked fine for me I just did a rebase

Error has been fixed.

Moving to RTBC.

shashikanth171 made their first commit to this issue’s fork.

shashikanth171’s picture

Status: Reviewed & tested by the community » Fixed

Merged MR. Thank you @nishant, @shiv_sharma, @elber.

Status: Fixed » Closed (fixed)

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