OPNsense Forum

English Forums => 26.7 Series => Topic started by: Timeraider on July 16, 2026, 11:53:59 AM

Title: os-nginx configuration page doesnt load
Post by: Timeraider on July 16, 2026, 11:53:59 AM
nginx itself works and the other pages also work, but specifically the configuration page (arguably the most important) crashes.
Errors:
[16-Jul-2026 11:51:36 Europe/Amsterdam] TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/lib/php/cache/_usr_local_opnsense_mvc_app_views_layout_partials_base_form.volt.php:9
Stack trace:
#0 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('/usr/local/opns...', Array, false)
#1 [internal function]: Phalcon\Mvc\View->engineRender(Array, 'layout_partials...', false, false)
#2 [internal function]: Phalcon\Mvc\View->partial('layout_partials...', Array)
#3 /var/lib/php/cache/_usr_local_opnsense_mvc_app_views_layout_partials_base_tabs_content.volt.php(8): Phalcon\Mvc\View\Engine\AbstractEngine->partial('layout_partials...', Array)
#4 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('/usr/local/opns...', Array, false)
#5 [internal function]: Phalcon\Mvc\View->engineRender(Array, 'layout_partials...', false, false)
#6 [internal function]: Phalcon\Mvc\View->partial('layout_partials...', Array)
#7 /var/lib/php/cache/_usr_local_opnsense_mvc_app_views_opnsense_nginx_index.volt.php(267): Phalcon\Mvc\View\Engine\AbstractEngine->partial('layout_partials...', Array)
#8 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('/usr/local/opns...', Array, true)
#9 [internal function]: Phalcon\Mvc\View->engineRender(Array, 'OPNsense/Nginx/...', true)
#10 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php(151): Phalcon\Mvc\View->processRender('', '')
#11 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Dispatcher.php(168): OPNsense\Base\ControllerBase->afterExecuteRoute(NULL)
#12 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(156): OPNsense\Mvc\Dispatcher->dispatch(Object(OPNsense\Mvc\Request), Object(OPNsense\Mvc\Response), Object(OPNsense\Mvc\Session))
#13 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(139): OPNsense\Mvc\Router->performRequest(Object(OPNsense\Mvc\Dispatcher))
#14 /usr/local/opnsense/www/index.php(66): OPNsense\Mvc\Router->routeRequest('/ui/nginx', Array)
#15 {main}


Already did the obvious like reinstalling nginx plugin, restarting etc.
Title: Re: os-nginx configuration page doesnt load
Post by: franco on July 16, 2026, 11:57:10 AM
# opnsense-patch https://github.com/opnsense/core/commit/14710e775
Title: Re: os-nginx configuration page doesnt load
Post by: Timeraider on July 16, 2026, 12:49:34 PM
Quote from: franco on July 16, 2026, 11:57:10 AM# opnsense-patch https://github.com/opnsense/core/commit/14710e775
O, perfect.
Can confirm that patch fixes the issue.
Title: Re: os-nginx configuration page doesnt load
Post by: Stinky-Packets on July 16, 2026, 05:21:12 PM
Confirmed on:
OPNsense 26.72os-nginx 1.36_3S

Applied:
opnsense-patch 14710e775

Patch applied successfully and immediately resolved:
Services → Nginx → Configuration = page load failure

No additional configuration changes required.
Title: Re: os-nginx configuration page doesnt load
Post by: muchacha_grande on July 16, 2026, 10:59:06 PM
I've found another problem with Nginx pages. I can't access HTTP(S)->Security Headers.
I created an issue at https://github.com/opnsense/core/issues/10546#issue-4903753570

@Timeraider, @Stinky-Packets, can you confirm if you have access to this page. The Edit Security Header page only shows empty tabs.
Title: Re: os-nginx configuration page doesnt load
Post by: wincent on July 17, 2026, 06:49:28 AM
The same issue as SQUID, page 'Administration' doesn't load, other pages 'Cache log/Access log/Store log' are good.
After patching 14710e775, the issue was resolved!
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/lib/php/cache/_usr_local_opnsense_mvc_app_views_layout_partials_base_form.volt.php:9
Stack trace:
#0 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('/usr/local/opns...', Array, false)
#1 [internal function]: Phalcon\Mvc\View->engineRender(Array, 'layout_partials...', false, false)
#2 [internal function]: Phalcon\Mvc\View->partial('layout_partials...', Array)
#3 /var/lib/php/cache/_usr_local_opnsense_mvc_app_views_layout_partials_base_tabs_content.volt.php(8): Phalcon\Mvc\View\Engine\AbstractEngine->partial('layout_partials...', Array)
#4 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('/usr/local/opns...', Array, false)
#5 [internal function]: Phalcon\Mvc\View->engineRender(Array, 'layout_partials...', false, false)
#6 [internal function]: Phalcon\Mvc\View->partial('layout_partials...', Array)
#7 /var/lib/php/cache/_usr_local_opnsense_mvc_app_views_opnsense_proxy_index.volt.php(338): Phalcon\Mvc\View\Engine\AbstractEngine->partial('layout_partials...', Array)
#8 [internal function]: Phalcon\Mvc\View\Engine\Volt->render('/usr/local/opns...', Array, true)
#9 [internal function]: Phalcon\Mvc\View->engineRender(Array, 'OPNsense/Proxy/...', true)
#10 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php(151): Phalcon\Mvc\View->processRender('', '')
#11 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Dispatcher.php(168): OPNsense\Base\ControllerBase->afterExecuteRoute(NULL)
#12 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(156): OPNsense\Mvc\Dispatcher->dispatch(Object(OPNsense\Mvc\Request), Object(OPNsense\Mvc\Response), Object(OPNsense\Mvc\Session))
#13 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(139): OPNsense\Mvc\Router->performRequest(Object(OPNsense\Mvc\Dispatcher))
#14 /usr/local/opnsense/www/index.php(66): OPNsense\Mvc\Router->routeRequest('/ui/proxy', Array)
#15 {main}
Title: Re: os-nginx configuration page doesnt load
Post by: velocitas_eradico_69 on July 17, 2026, 03:24:03 PM
Quote from: muchacha_grande on July 16, 2026, 10:59:06 PMI've found another problem with Nginx pages. I can't access HTTP(S)->Security Headers.
I created an issue at https://github.com/opnsense/core/issues/10546#issue-4903753570

@Timeraider, @Stinky-Packets, can you confirm if you have access to this page. The Edit Security Header page only shows empty tabs.

I can access HTTP(S) > Security Headers but clicking the "Add" button just shows a row of empty, clickable tabs.
Title: Re: os-nginx configuration page doesnt load
Post by: muchacha_grande on July 17, 2026, 03:55:27 PM
This window (Edit Security Header) has folder tabs.
I've been navigating through every menu and edit window and didn't find other edit window that has folder tabs inside.