Project

General

Profile

Actions

Bug #10217

closed

PHP Warning: Invalid argument supplied for foreach() in /etc/inc/ipsec.inc on line 952

Added by Matthew Stribling almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
IPsec
Target version:
Start date:
01/28/2020
Due date:
% Done:

100%

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

Description

Crash report begins. Anonymous machine information:

arm
11.3-STABLE
FreeBSD 11.3-STABLE #66 7a31f290955(factory-RELENG_2_4_5): Tue Jan 28 13:47:46 EST 2020 :/build/factory-crossbuild-245/obj/armv6/a2TkGfed/arm.armv6/build/factory-crossbuild-245/sources/FreeBSD-src/sys/pfSense-SG-3100

Crash report details:

PHP Errors:
[28-Jan-2020 15:01:13 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /etc/inc/ipsec.inc on line 952
[28-Jan-2020 15:01:30 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /etc/inc/ipsec.inc on line 952
[28-Jan-2020 15:02:21 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /etc/inc/ipsec.inc on line 952
[28-Jan-2020 15:03:27 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /etc/inc/ipsec.inc on line 952

No FreeBSD crash data found.

Actions #1

Updated by Jim Pingle almost 5 years ago

  • Category set to IPsec
  • Status changed from New to In Progress
  • Assignee set to Jim Pingle
  • Target version set to 2.5.0
  • Affected Version set to All
  • Affected Architecture All added
  • Affected Architecture deleted ()

Looks like the config.xml on the target system is missing the <installedpackages> tag, which is not atypical, so the code needs to check before using it as an array.

Actions #2

Updated by Jim Pingle almost 5 years ago

  • Subject changed from PHP Error 2.4.5 to PHP Warning: Invalid argument supplied for foreach() in /etc/inc/ipsec.inc on line 952
  • Target version changed from 2.5.0 to 2.4.5
  • Affected Version changed from All to 2.4.5
Actions #3

Updated by Jim Pingle almost 5 years ago

This was already fixed on 2.5.0. Made a separate fix to 2.4.5.

Actions #4

Updated by Jim Pingle almost 5 years ago

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

Updated by Renato Botelho almost 5 years ago

  • Status changed from Feedback to Resolved

Fixed

Actions

Also available in: Atom PDF