Empty config entries returned as array
|Affected version:||Affected Architecture:|
I've seen this pop up in many text boxes of the web interface, for instance by browsing to Interfaces -> WAN, with this config:
MTU box shows:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/interfaces.php on line 820
Hostname box shows:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/interfaces.php on line 948
It also shows up in many other places.
#1 Updated by Chris Buechler over 3 years ago
Here's another instance of something being returned as "Array" when it shouldn't be.
php: : There were error(s) loading the rules: /tmp/rules.debug:43: unknown port Array pfctl: Syntax error in config file: pf rules not loaded - The line in question reads : nat on $WAN from 192.168.1.0/24 to any -> 22.214.171.124/32 port Array static-port
#2 Updated by Chris Buechler over 3 years ago
This is wrecking all kinds of things in 2.0, so the new xmlreader has been reverted for the time being.
If you would like to use the newer xmlreader.inc code simply touch
/cf/conf/use_xmlreader and the newer code will be used.
#4 Updated by Chris Buechler about 3 years ago
- Target version changed from 3 to Future
- Affected version deleted (