Project

General

Profile

Actions

Bug #12537

closed

IPsec -> Advanced Settings not working: PHP Fatal error

Added by Guillermo Martínez about 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
IPsec
Target version:
-
Start date:
11/20/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.5.2
Affected Architecture:
amd64

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

PHP_errors.log (496 Bytes) PHP_errors.log Guillermo Martínez, 11/20/2021 01:44 PM
vpn_ipsec_advanced_settings.jpg (75.4 KB) vpn_ipsec_advanced_settings.jpg Guillermo Martínez, 11/20/2021 04:27 PM
Actions

Also available in: Atom PDF