Project

General

Profile

Actions

Bug #13566

closed

pfSense - Feature #13446: Upgrade PHP from 7.4 to 8.1

Non-devel pfBlocker Package Broken in 2.7 CE with PHP 8.1

Added by Kris Phillips about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
pfBlockerNG
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

Several PHP 8.1-related bugs are fixed in the devel version, but these persist in the stable release.

Going to the Alerts screen produces this error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/pfblockerng/pfblockerng_alerts.php:486 Stack trace: #0 {main} thrown in /usr/local/www/pfblockerng/pfblockerng_alerts.php on line 486 PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng_alerts.php, Line: 486, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/pfblockerng/pfblockerng_alerts.php:486 Stack trace: #0 {main} thrown

Attempting to run updates produces the following error:
PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng_update.php, Line: 392, Message: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, string given in /usr/local/www/pfblockerng/pfblockerng_update.php:392
Stack trace:
#0 /usr/local/www/pfblockerng/pfblockerng_update.php(392): fclose('/var/log/pfbloc...')
#1 {main}
thrown

There may be more errors present.

Actions

Also available in: Atom PDF