23.01 pfblockerNG still failing with php errors
-
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.
-
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 -
-
@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 -
https://forum.netgate.com/topic/177884/pfblockerng-devel-v3-2-0-crashing-repeatedly-on-pfsense-23-01/7?_=1676563838954
-
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' -
@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?
-
@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.
-
@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.incJust 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. -
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.
-
@skogs yep, all sorted now!