Bug #4865
closedSave IPsec Advanced Settings before IPsec is enabled gives error
0%
Description
On a system that does not have IPsec enabled, go to VPN->IPsec, Advanced Settings tab and press Save (leave all the default settings).
It gives:
Fatal error: Cannot unset string offsets in /usr/local/www/vpn_ipsec_settings.php on line 168
The various unset() all through there for Boolean check-boxes need to be protected with "if isset()", because in this case $config["ipsec"] is just an empty string.
I noticed while having a quick look at https://redmine.pfsense.org/issues/4864
It will be easy to fix. I will look in a few hours tonight.
Updated by Phillip Davis over 9 years ago
Also if you select some debug level settings when saving the very first time, then those are not actually saved.
This and the unset() errors are fixed by https://github.com/pfsense/pfsense/pull/1777
Updated by Phillip Davis over 9 years ago
Commit for master: https://github.com/pfsense/pfsense/commit/a607968ab4fbfc5fa3baf6ce6282065e22b81847
Commit for RELENG_2_2: https://github.com/pfsense/pfsense/commit/b3bcc72952ec1b425294782525515b2d3ef5a53b
Looks good.
Updated by Chris Buechler over 9 years ago
- Status changed from New to Resolved
- Target version set to 2.2.4