Project

General

Profile

Actions

Regression #13892

closed

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

PHP error from ``status_monitoring.php`` with empty OpenVPN servers

Added by Jim Pingle almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Status_Monitoring
Target version:
Start date:
Due date:
% Done:

100%

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

Description

When visiting status_monitoring.php, the user may get a PHP error if they have no valid OpenVPN server entries.

[20-Jan-2023 07:57:38 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_monitoring.php:287
Stack trace:
#0 {main}
thrown in /usr/local/www/status_monitoring.php on line 287

I can't replicate this here yet, but there are quite a few places in that page which need updated for PHP 8.1.

To me, I have updated and tested the code with the new config access methods.

Actions #1

Updated by Jim Pingle almost 2 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Commit pushed and merged/picked as needed, will be in builds soon.

https://github.com/pfsense/FreeBSD-ports/commit/a821b93d16a3d10535ebaa7fc9c187064dd45a0e

Actions #2

Updated by Jim Pingle almost 2 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF