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

    PHP Stack trace error

    Scheduled Pinned Locked Moved pfBlockerNG
    4 Posts 2 Posters 1.1k 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.
    • SLIMaxPowerS
      SLIMaxPower
      last edited by

      Not sure whats going on here

      [27-May-2017 07:01:47 Australia/Perth] PHP Stack trace:
      [27-May-2017 07:01:47 Australia/Perth] PHP  1. {main}() /usr/local/www/pfblockerng/pfblockerng.php:0
      [27-May-2017 07:01:47 Australia/Perth] PHP  2. pfblockerng_sync_cron() /usr/local/www/pfblockerng/pfblockerng.php:71
      [27-May-2017 07:01:47 Australia/Perth] PHP  3. sync_package_pfblockerng() /usr/local/www/pfblockerng/pfblockerng.php:393
      [27-May-2017 08:01:52 Australia/Perth] PHP Fatal error:  Cannot unset string offsets in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 3205

      1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator
        last edited by

        odd… never seen that error before...  Do you have a DNSBL Group with only a customlist defined? IE: no Source URLs being used?

        Can you run this command and post the result:
        (Change "EXAMPLE" to the name of this DNSBL Group)

        grep -A30 ">EXAMPLE<" /conf/config.xml
        

        You can try to open and save that DNSBL Group and see if it fixes it.

        "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
        • BBcan177B
          BBcan177 Moderator
          last edited by

          To patch the pfblockerng.inc file (if your comfortable in editing the file):

          /usr/local/pkg/pfblockerng/pfblockerng.inc
          Edit Line 3205

          From:

          if (empty($list['row'][0]['url'])) {
          

          To:

          if (isset($list['row']) && empty($list['row'][0]['url'])) {
          

          "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
          • SLIMaxPowerS
            SLIMaxPower
            last edited by

            worked ty

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.