• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

PfBlockerng pfp fatal error: 'Cannot unset string offsets'

Scheduled Pinned Locked Moved pfBlockerNG
3 Posts 2 Posters 1.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dbennett
    last edited by Aug 23, 2016, 1:54 PM

    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.10

    Crash 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 4298

    Closer 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.

    1 Reply Last reply Reply Quote 0
    • B
      BBcan177 Moderator
      last edited by Aug 23, 2016, 2:10 PM

      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']);
      }

      "Experience is something you don't get until just after you need it."

      Website: http://pfBlockerNG.com
      Twitter: @BBcan177  #pfBlockerNG
      Reddit: https://www.reddit.com/r/pfBlockerNG/new/

      1 Reply Last reply Reply Quote 0
      • D
        dbennett
        last edited by Aug 23, 2016, 2:20 PM

        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!

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received