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

    pfBlockerNG php error after update to 3.0.0_5

    Scheduled Pinned Locked Moved pfBlockerNG
    10 Posts 6 Posters 865 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.
    • fireodoF
      fireodo
      last edited by

      Hi,

      since update on ver 3.0.0_5 I get this php error:

      PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng.php, Line: 65, Message: Uncaught Error: Call to undefined function pfBlockerNG_cleardnsbl() in /usr/local/www/pfblockerng/pfblockerng.php:65
      Stack trace:
      #0 {main}
      thrown @ 2020-12-12 07:56:37

      Thanks,
      fireodo

      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
      pfsense 2.8.0 CE
      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

      fireodoF 1 Reply Last reply Reply Quote 0
      • fireodoF
        fireodo @fireodo
        last edited by fireodo

        @fireodo I guess I found myself the solution - I hope @BBcan177 is verifing if it is correct:

        in /usr/local/www/pfblockerng/pfblockerng.php

        // Clear IP/DNSBL counters via CRON
        if (isset($argv[1])) {
        if ($argv[1] == 'clearip') {
        pfBlockerNG_clearip();
        exit;
        }
        elseif ($argv[1] == 'cleardnsbl') {
        pfBlockerNG_cleardnsbl('clearall');
        exit;
        }
        }

        the "cleardnsbl" part should be:

        }
        elseif ($argv[1] == 'cleardnsbl') {
        pfBlockerNG_clearsqlite('cleardnsbl');
        exit;
        }

        I have tested it and it works but (as I am no programmer) I would like @BBcan177 to confirm that.

        Good Weekend,
        fireodo

        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
        pfsense 2.8.0 CE
        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

        BBcan177B 1 Reply Last reply Reply Quote 0
        • Cool_CoronaC
          Cool_Corona
          last edited by

          One thing also is that I have to start unbound manually after the update.

          J 1 Reply Last reply Reply Quote 2
          • N
            netfoo
            last edited by

            @fireodo

            Same PHP error on my SG-3100!

            fireodoF 1 Reply Last reply Reply Quote 0
            • fireodoF
              fireodo @netfoo
              last edited by

              @netfoo said in pfBlockerNG php error after update to 3.0.0_5:

              @fireodo

              Same PHP error on my SG-3100!

              Edit the /usr/local/www/pfblockerng/pfblockerng.php
              with the changes above and you'll be fine 😏

              Regards,
              fireodo

              Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
              SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
              pfsense 2.8.0 CE
              Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

              1 Reply Last reply Reply Quote 0
              • J
                jdeloach @Cool_Corona
                last edited by

                @cool_corona said in pfBlockerNG php error after update to 3.0.0_5:

                One thing also is that I have to start unbound manually after the update.

                I've noticed that too. I would have thought that @BBcan177 would have fixed that in the last version unless it it something that we have to do from now on.

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

                  @fireodo said in pfBlockerNG php error after update to 3.0.0_5:

                  I have tested it and it works but (as I am no programmer) I would like @BBcan177 to confirm that.

                  Yes that is ok. I forgot to change that function call. Its only called if you enabled the Widget clear counters option tho.

                  Will get this fixed in next version asap.

                  "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/

                  Z 1 Reply Last reply Reply Quote 2
                  • BBcan177B
                    BBcan177 Moderator @jdeloach
                    last edited by

                    @jdeloach said in pfBlockerNG php error after update to 3.0.0_5:

                    @cool_corona said in pfBlockerNG php error after update to 3.0.0_5:

                    One thing also is that I have to start unbound manually after the update.

                    I've noticed that too. I would have thought that @BBcan177 would have fixed that in the last version unless it it something that we have to do from now on.

                    Its due to this:
                    https://redmine.pfsense.org/issues/10610

                    Basically during pkg installation, its causing Unbound to go into a zombie state during installation. The devs are looking at it.

                    What does this report?

                    pkg-static -v
                    

                    It should be 1.15.6 (in pfSense 2.4.5), you can try to upgrade the affected code:

                    pkg-static upgrade -f pkg
                    

                    But I have still seen it fail with 1.15.10 (pfSense 2.5)

                    "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/

                    Cool_CoronaC 1 Reply Last reply Reply Quote 0
                    • Cool_CoronaC
                      Cool_Corona @BBcan177
                      last edited by

                      @bbcan177 said in pfBlockerNG php error after update to 3.0.0_5:

                      pkg-static -v

                      1.15.6

                      1 Reply Last reply Reply Quote 0
                      • Z
                        zaphood @BBcan177
                        last edited by

                        @bbcan177 I have not set this Clear Widget Option afaik, still every night I am running into this error. Could it get triggered by something else?

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