Project

General

Profile

Actions

Bug #9067

closed

PHP error when installing first package with empty installedpackages tag

Added by Jim Pingle over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Very High
Assignee:
Category:
Package System
Target version:
Start date:
10/25/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.4
Affected Architecture:
All

Description

If the configuration contains only <installedpackages></installedpackages> then installing a package will fail with a PHP error:

[25-Oct-2018 19:35:51 Etc/UTC] PHP Warning:  Illegal string offset 'package' in /etc/inc/pkg-utils.inc on line 790
[25-Oct-2018 19:35:51 Etc/UTC] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /etc/inc/pkg-utils.inc:790
Stack trace:
#0 /etc/rc.packages(74): install_package_xml('Cron')
#1 {main}
  thrown in /etc/inc/pkg-utils.inc on line 790
Actions

Also available in: Atom PDF