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

23.01 pfblockerNG still failing with php errors

pfBlockerNG
5
10
1.9k
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
    skogs
    last edited by Feb 16, 2023, 2:13 AM

    As reported previously during development, pfblockerng still has issues with the widget. As per instructions, pfblockerng-devel was removed, this is fresh 23.01 with new pfblockerng.

    With this error, the gui then becomes unusable. Links and menus no longer function.

    Widget that is automatically added to front dashboard states

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/widgets/widgets/pfblockerng.widget.php:473 Stack trace: #0 /usr/local/www/widgets/widgets/pfblockerng.widget.php(987): pfBlockerNG_get_failed() #1 /usr/local/www/index.php(430): include('/usr/local/www/...') #2 {main} thrown in /usr/local/www/widgets/widgets/pfblockerng.widget.php on line 473 PHP ERROR: Type: 1, File: /usr/local/www/widgets/widgets/pfblockerng.widget.php, Line: 473, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/widgets/widgets/pfblockerng.widget.php:473 Stack trace: #0 /usr/local/www/widgets/widgets/pfblockerng.widget.php(987): pfBlockerNG_get_failed() #1 /usr/local/www/index.php(430): include('/usr/local/www/...') #2 {main} thrown
    

    Error report is thus:

    Crash report begins.  Anonymous machine information:
    
    amd64
    14.0-CURRENT
    FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256037-6e914874a5e: Fri Feb 10 20:30:29 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/VDZvZksF/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS
    
    Crash report details:
    
    PHP Errors:
    [15-Feb-2023 19:04:33 America/Denver] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/widgets/widgets/pfblockerng.widget.php:473
    Stack trace:
    #0 /usr/local/www/widgets/widgets/pfblockerng.widget.php(987): pfBlockerNG_get_failed()
    #1 /usr/local/www/index.php(430): include('/usr/local/www/...')
    #2 {main}
      thrown in /usr/local/www/widgets/widgets/pfblockerng.widget.php on line 473
    [15-Feb-2023 19:10:38 America/Denver] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/widgets/widgets/pfblockerng.widget.php:473
    Stack trace:
    #0 /usr/local/www/widgets/widgets/pfblockerng.widget.php(987): pfBlockerNG_get_failed()
    #1 /usr/local/www/index.php(430): include('/usr/local/www/...')
    #2 {main}
      thrown in /usr/local/www/widgets/widgets/pfblockerng.widget.php on line 473
    
    
    
    No FreeBSD crash data found.
    			
    
    1 Reply Last reply Reply Quote 0
    • S
      skogs
      last edited by Feb 16, 2023, 2:17 AM

      Workaround until the widget is fixed up:

      Console in.
      Press 8 for shell
      rm /usr/local/www/widgets/widgets/pfblockerng.widget.php
      rm /usr/local/www/widgets/include/widget-pfblockerng.inc
      exit

      D 1 Reply Last reply Feb 16, 2023, 4:09 PM Reply Quote 3
      • J jimp moved this topic from Problems Installing or Upgrading pfSense Software on Feb 16, 2023, 3:56 PM
      • D
        drewsaur @skogs
        last edited by Feb 16, 2023, 4:09 PM

        @skogs Everything is working but I was given this alert...is there anything to be concerned about?

        11:03:11 PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 1468, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/pfblockerng/pfblockerng.inc:1468
        Stack trace:
        #0 /usr/local/pkg/pfblockerng/pfblockerng.inc(7253): pfb_build_if_list(true, false)
        #1 /usr/local/pkg/pfblockerng/pfblockerng.inc(10802): sync_package_pfblockerng()
        #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): pfblockerng_php_pre_deinstall_command()
        #3 /etc/inc/pkg-utils.inc(781): eval()
        #4 /etc/inc/pkg-utils.inc(1093): eval_once('pfblockerng_php...')
        #5 /etc/rc.packages(80): delete_package_xml('pfBlockerNG-dev...', 'deinstall')
        #6 {main}
        thrown

        M 1 Reply Last reply Feb 16, 2023, 4:10 PM Reply Quote 0
        • M
          MoonKnight @drewsaur
          last edited by Feb 16, 2023, 4:10 PM

          @drewsaur

          https://forum.netgate.com/topic/177884/pfblockerng-devel-v3-2-0-crashing-repeatedly-on-pfsense-23-01/7?_=1676563838954

          --- 24.11 ---
          Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz
          Kingston DDR4 2666MHz 16GB ECC
          2 x HyperX Fury SSD 120GB (ZFS-mirror)
          2 x Intel i210 (ports)
          4 x Intel i350 (ports)

          1 Reply Last reply Reply Quote 0
          • D
            drewsaur
            last edited by Feb 16, 2023, 4:25 PM

            I am getting errors in /var/log/pfblockerng/py_error.log as follows:

            2023-02-16 11:01:50,786|ERROR| [pfBlockerNG]: Failed to load python module 'maxminddb': No module named 'maxminddb'
            2023-02-16 11:01:50,786|ERROR| [pfBlockerNG]: Failed to load python module 'sqlite3': No module named '_sqlite3'

            S 1 Reply Last reply Feb 16, 2023, 4:59 PM Reply Quote 0
            • S
              SteveITS Galactic Empire @drewsaur
              last edited by Feb 16, 2023, 4:59 PM

              @drewsaur said in 23.01 pfblockerNG still failing with php errors:

              2023-02-16 11:01:50,786|ERROR| [pfBlockerNG]: Failed to load python module 'maxminddb': No module named 'maxminddb'
              2023-02-16 11:01:50,786|ERROR| [pfBlockerNG]: Failed to load python module 'sqlite3': No module named '_sqlite3'

              That's different...read thread https://forum.netgate.com/topic/177212/pfblockerng-devel-v3-1-0_19-10/45 as it seems it was supposed to be fixed but others have reported it on the RC. Looks like a solution there?

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote 👍 helpful posts!

              D 1 Reply Last reply Feb 16, 2023, 5:14 PM Reply Quote 0
              • D
                drewsaur @SteveITS
                last edited by Feb 16, 2023, 5:14 PM

                @steveits OK so reinstalling the package worked fine. I did have to rm /var/log/pfblockerng/py_error.log manually in order to clear the yellow alert in the widget.

                1 Reply Last reply Reply Quote 1
                • A
                  AlphaDog45
                  last edited by Feb 17, 2023, 6:48 PM

                  @skogs said in 23.01 pfblockerNG still failing with php errors:

                  rm /usr/local/www/widgets/widgets/pfblockerng.widget.php
                  rm /usr/local/www/widgets/include/widget-pfblockerng.inc

                  Just came here to confirm that I had the same issue today after updating to 23.01 - dashboard would not respond due to the widget failure.
                  rm /usr/local/www/widgets/widgets/pfblockerng.widget.php and
                  rm /usr/local/www/widgets/include/widget-pfblockerng.inc did the trick, but the widget obviously no longer works. System log kept generating PHP errors every 10 seconds until I rebooted pfsense. Afterwards all was ok.

                  1 Reply Last reply Reply Quote 0
                  • S
                    skogs
                    last edited by Mar 4, 2023, 6:16 AM

                    It appears that a new pfBlockerNG package is available. Under package manager there should be a 3.2.0_3 available. Seems to have finally fixed the issue. Now the widget show up and doesn't eat itself.

                    A 1 Reply Last reply Mar 4, 2023, 7:24 AM Reply Quote 0
                    • A
                      AlphaDog45 @skogs
                      last edited by Mar 4, 2023, 7:24 AM

                      @skogs yep, all sorted now! 👍

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