Problem with update pfBlockerNG-devel 3.2.0_18 to 3.2.0_20
-
After up the update I get a pfsense crash report
PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 5347, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/pfblockerng/pfblockerng.inc:5347 Stack trace: #0 /usr/local/www/pfblockerng/pfblockerng_alerts.php(1736): pfb_collect_localhosts() #1 {main} thrown
I've tried reinstalling the package, but same error message. I have all "Recommended System Patches for Netgate pfSense software version 2.7.2" applied. Any suggestions?
-
At line 5347, do you see this :
Can't see how that fails.
Do you have any static DHCP leases ? -
@Gertjan
I have static DHCP leases but it seems everyrhing is configured correctly. I haven't change anything on my pfsense besides updating pfblockerNG. Besides the crash report message, pfblockerNG is working fine, its just the crash report messages that are bugging me. -
I identified the cause of the error. After backing up the running configuration, I compared the XML files from previous backups. It turned out that, for some reason, my pfSense configuration contained an extra "<opt3></opt3>" line. Once I removed that line and restored the corrected config file, the issue was resolved. No more crash reports.
-
Ok, that explains.
The function "pfb_collect_localhost()" checks all known interfaces for DHCP and other settings to collect local IP addresses used.
If an interface is declared, but empty (no settings what so ever), then the error you've shown is totally understandable.Btw : this is not a pfBlockerNG bug : the <OPT3> shouldn't be there.