Project

General

Profile

Actions

Bug #14474

closed

PHP error from empty ``<plugins>`` tag in ``config.xml``

Added by Christopher Cope over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Dashboard
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.05.1
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:

Description

The following error occurred preventing the GUI from opening.

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/pfsense-utils.inc:3588
Stack trace:
#0 /etc/inc/system.inc(1484): pkg_call_plugins('plugin_nginx', Array)
#1 /etc/inc/system.inc(1219): system_generate_nginx_config('/var/etc/nginx-...', '-----BEGIN CERT...', '\r\n-----BEGIN PR...', '', 'nginx-webConfig...', '8443', '/usr/local/www/', 'cert.crt', 'cert.key', false, true)
#2 /etc/rc.restart_webgui(40): system_webgui_start()
#3 {main} 

occurred on
Netgate pfSense Plus version: 23.05-RELEASE
Built On: Mon May 22 15:04:36 UTC 2023

Seems to be caused by an empty plugins tag in the config. Needs to be updated to use the new accessor method.

Actions

Also available in: Atom PDF