Project

General

Profile

Actions

Bug #14742

closed

Several PHP errors in upgrade_config.inc

Added by Christopher Cope over 1 year ago. Updated 2 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Configuration Upgrade
Target version:
Start date:
Due date:
% Done:

100%

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

Description

This file still needs to be updated to use the new accessor methods, as several errors are still occurring with certain older config imports.

For example:

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:4068 Stack trace: #0 /etc/inc/config.lib.inc(513): upgrade_128_to_129() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown in /etc/inc/upgrade_config.inc on line 4068 PHP ERROR: Type: 1, File: /etc/inc/upgrade_config.inc, Line: 4068, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:4068 Stack trace: #0 /etc/inc/config.lib.inc(513): upgrade_128_to_129() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:4296 Stack trace: #0 /etc/inc/config.lib.inc(518): upgrade_136_to_137() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown in /etc/inc/upgrade_config.inc on line 4296 PHP ERROR: Type: 1, File: /etc/inc/upgrade_config.inc, Line: 4296, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:4296 Stack trace: #0 /etc/inc/config.lib.inc(518): upgrade_136_to_137() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:4513 Stack trace: #0 /etc/inc/config.lib.inc(518): upgrade_143_to_144() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown in /etc/inc/upgrade_config.inc on line 4513 PHP ERROR: Type: 1, File: /etc/inc/upgrade_config.inc, Line: 4513, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:4513 Stack trace: #0 /etc/inc/config.lib.inc(518): upgrade_143_to_144() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:5447 Stack trace: #0 /etc/inc/config.lib.inc(518): upgrade_172_to_173() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown in /etc/inc/upgrade_config.inc on line 5447 PHP ERROR: Type: 1, File: /etc/inc/upgrade_config.inc, Line: 5447, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/upgrade_config.inc:5447 Stack trace: #0 /etc/inc/config.lib.inc(518): upgrade_172_to_173() #1 /usr/local/pfSense/include/www/backup.inc(412): convert_config() #2 /usr/local/www/diag_backup.php(63): execPost(Array, Array) #3 {main} thrown

Related issues

Related to Bug #14859: Config upgrade error: upgrade_config.inc:6135ResolvedMarcos M

Actions
Related to Bug #15362: Config upgrade error with empty gateway interval tags.ResolvedMarcos M

Actions
Actions #1

Updated by Jim Pingle over 1 year ago

  • Assignee set to Jim Pingle
Actions #2

Updated by Christopher Cope about 1 year ago

  • Related to Bug #14859: Config upgrade error: upgrade_config.inc:6135 added
Actions #3

Updated by Steve Wheeler 9 months ago

  • Related to Bug #15362: Config upgrade error with empty gateway interval tags. added
Actions #4

Updated by Marcos M 6 months ago

  • Status changed from New to Resolved
  • Assignee changed from Jim Pingle to Marcos M
  • Target version set to 2.8.0
  • Plus Target Version set to 24.08
  • Release Notes changed from Default to Force Exclusion

These should be resolved with the config access work for 24.08.

Actions #5

Updated by Marcos M 6 months ago

  • % Done changed from 0 to 100
Actions #6

Updated by Jim Pingle 2 months ago

  • Plus Target Version changed from 24.08 to 24.11
Actions

Also available in: Atom PDF