Project

General

Profile

Actions

Regression #13876

closed

Feature #13446: Upgrade PHP from 7.4 to 8.1

PHP error on diag_backup.php with no packages installed

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

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Backup / Restore
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Force Exclusion
Affected Version:
Affected Architecture:

Description

If there is no <installedpackages></installedpackages> section in the firewall configuration, the diag_backup.php page ( Diagnostics > Backup/Restore ) will encounter a PHP error when testing if it should display package-related functions.

PHP ERROR: Type: 1, File: /usr/local/www/diag_backup.php, Line: 280, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/diag_backup.php:280
Stack trace:
#0 {main}
thrown @ 2023-01-14 12:36:28

To me, I have a fix.

Actions #1

Updated by Jim Pingle almost 2 years ago

  • Private changed from Yes to No
Actions #2

Updated by Jim Pingle almost 2 years ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100
Actions #3

Updated by Jim Pingle almost 2 years ago

  • Release Notes changed from Default to Force Exclusion
Actions #4

Updated by Jim Pingle almost 2 years ago

  • Status changed from Feedback to Resolved

I was able to find a system that could reproduce the problem before this patch went in. After updating, I can no longer reproduce the error.

Actions

Also available in: Atom PDF