Project

General

Profile

Actions

Bug #9067

closed

PHP error when installing first package with empty installedpackages tag

Added by Jim Pingle about 6 years ago. Updated about 6 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 #1

Updated by Jim Pingle about 6 years ago

  • Status changed from Assigned to Feedback
  • % Done changed from 0 to 100
Actions #2

Updated by Danilo Zrenjanin about 6 years ago

I've upgraded to:

2.4.5-DEVELOPMENT (ARM)
built on Wed Nov 07 16:23:36 EST 2018
FreeBSD 11.2-RELEASE-p4

Configuration contained only <installedpackages></installedpackages>

I installed successfully Acme package without any PHP error messages.

Actions #3

Updated by Jim Pingle about 6 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF