Bug #12537
closedIPsec -> Advanced Settings not working: PHP Fatal error
0%
Description
On every pfSense 2.5.2 box I'm getting:
Fatal error: Uncaught TypeError: Argument 4 passed to Form_Select::__construct() must be of the type array, null given, called in /usr/local/www/vpn_ipsec_settings.php on line 385 and defined in /usr/local/www/classes/Form/Select.class.php:31 Stack trace: #0 /usr/local/www/vpn_ipsec_settings.php(385): Form_Select->_construct('filtermode', 'IPsec Filter Mo...', NULL, NULL) #1 {main} thrown in /usr/local/www/classes/Form/Select.class.php on line 31 PHP ERROR: Type: 1, File: /usr/local/www/classes/Form/Select.class.php, Line: 31, Message: Uncaught TypeError: Argument 4 passed to Form_Select::_construct() must be of the type array, null given, called in /usr/local/www/vpn_ipsec_settings.php on line 385 and defined in /usr/local/www/classes/Form/Select.class.php:31 Stack trace: #0 /usr/local/www/vpn_ipsec_settings.php(385): Form_Select->__construct('filtermode', 'IPsec Filter Mo...', NULL, NULL) #1 {main} thrown
I have verified that the global variable "ipsec_filtermodes" used to instantiate the "Form_Select" class is declared as global in /usr/local/www/vpn_ipsec_settings.php (38) and that it has no value assigned. That variable doesn't exist in any other php script in /usr/local/www/*
Hope this help you to fix soon this little bug.
Regards
Files