Bug #13566
closedpfSense - Feature #13446: Upgrade PHP from 7.4 to 8.1
Non-devel pfBlocker Package Broken in 2.7 CE with PHP 8.1
0%
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.
Updated by Reid Linnemann about 2 years ago
- Assignee set to Reid Linnemann
BBCan177 is currently finalizing changes for pfBlockerNG-devel for 2.7/ 23.01. When those are submitted, devel and non-devel will be synced.
Updated by Christian McDonald almost 2 years ago
- Status changed from New to Feedback
- Assignee changed from Reid Linnemann to Christian McDonald
- Target version set to 2.7.0
- Plus Target Version set to 23.01
security/pfSense-pkg-pfBlockerNG-devel
has been copied to security/pfSense-pkg-pfBlockerNG
.
The versions of both have been bumped to 3.2.0
v2 is no longer available on 2.7+ and 23.01+
Updated by Kris Phillips almost 2 years ago
I'm assuming this will have to wait for the RC release, as I don't see this reflected in the BETA repos. Both versions are still available there.
Updated by Christopher Cope almost 2 years ago
- Status changed from Feedback to Resolved
Tested on
23.01-RC (amd64) built on Thu Feb 02 16:49:15 UTC 2023 FreeBSD 14.0-CURRENT
Both packages are on 3.2.0 as expected. Marking this issue as resolved.