Project

General

Profile

Actions

Regression #14076

closed

PHP error if the configuration has an empty Auto Configuration Backup section

Added by Marcos M about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Auto Configuration Backup
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.05
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:
All

Description

After upgrading to 23.01, the following is reported:

[25-Feb-2023 23:15:42 Europe/London] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_acb_backup.php:75
Stack trace:
#0 {main}
 thrown in /usr/local/www/services_acb_backup.php on line 75
[25-Feb-2023 23:15:50 Europe/London] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_acb.php:42
Stack trace:
#0 {main}
 thrown in /usr/local/www/services_acb.php on line 42
[25-Feb-2023 23:15:53 Europe/London] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_acb_backup.php:75
Stack trace:
#0 {main}
 thrown in /usr/local/www/services_acb_backup.php on line 75
[25-Feb-2023 23:16:26 Europe/London] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_acb.php:42
Stack trace:
#0 {main}
 thrown in /usr/local/www/services_acb.php on line 42

The config.xml cotains:

<acb></acb>

Actions #1

Updated by Jim Pingle about 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Jim Pingle
  • Target version set to 2.7.0
  • Plus Target Version set to 23.05
Actions #2

Updated by Jim Pingle about 1 year ago

This one can also happen with the empty settings tag:

11:45:10 PHP ERROR: Type: 1, File: /usr/local/www/services_acb_settings.php, Line: 121, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_acb_settings.php:121
Stack trace:
#0 {main}
  thrown

Fixes for all these and more coming shortly.

Actions #3

Updated by Jim Pingle about 1 year ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Christopher Cope about 1 year ago

  • Status changed from Feedback to Resolved

Tested on

23.05-DEVELOPMENT (amd64)
built on Wed Mar 15 06:04:38 UTC 2023
FreeBSD 14.0-CURRENT
Working correctly. Marking resolved.

Actions #5

Updated by Jim Pingle about 1 year ago

  • Subject changed from PHP error with Auto Configuration Backup to PHP error if the configuration has an empty Auto Configuration Backup section

Updating subject for release notes.

Actions

Also available in: Atom PDF