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

PHP Stack trace error

Scheduled Pinned Locked Moved pfBlockerNG
4 Posts 2 Posters 989 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.
  • S
    SLIMaxPower
    last edited by May 27, 2017, 12:41 AM

    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
    • B
      BBcan177 Moderator
      last edited by May 27, 2017, 4:27 AM

      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
      • B
        BBcan177 Moderator
        last edited by May 27, 2017, 4:43 AM

        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
        • S
          SLIMaxPower
          last edited by May 28, 2017, 6:06 AM

          worked ty

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