PfBlockerng pfp fatal error: 'Cannot unset string offsets'
-
Greetings!
Like to start by say well done on pfBlockerNG. Saved me hours of work and headaches!
I'm beginning to see this 'Crash reports' more and more.
Crash report begins. Anonymous machine information:
amd64
10.1-RELEASE-p25
FreeBSD 10.1-RELEASE-p25 #0 c39b63e(releng/10.1)-dirty: Mon Dec 21 15:20:13 CST 2015 root@pfs22-amd64-builder:/usr/obj.RELENG_2_2.amd64/usr/pfSensesrc/src.RELENG_2_2/sys/pfSense_SMP.10Crash report details:
PHP Errors:
[19-Aug-2016 16:00:33 CST6CDT] PHP Fatal error: Cannot unset string offsets in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 4298
[19-Aug-2016 17:00:29 CST6CDT] PHP Fatal error: Cannot unset string offsets in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 4298
[19-Aug-2016 18:00:27 CST6CDT] PHP Fatal error: Cannot unset string offsets in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 4298Closer look shows that it's happening pretty much every hour and the error doesn't change.
This is line 4298:
unset($new_rules_nocreated[$key]['created']);Thoughts?
Thanks again for the awesome program and for your future assistance.
-
Thanks!
It looks like your still using the pfSense 2.2 pkg version. I am not actively updating that version, and suggest to move to pfSense 2.3 to get the latest version of the pfBlockerNG pkg.
However; its a simple fix by adding the following in red above and below that line 4298
if (isset($new_rules_nocreated[$key]['created'])) {
unset($new_rules_nocreated[$key]['created']);
} -
AWESOME! Thanks!
I am eager to upgrade to 2.3 but unfortunately each time I upgrade my CARP configs the upgrade produces a crash dump loop.
Thanks for the solution!