Project

General

Profile

Actions

Regression #14525

closed

PHP error in ``status_ipsec.php`` after removing active IPsec tunnel configuration

Added by Christopher Cope 11 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
IPsec
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.09
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

Stack trace:
#0 /usr/local/www/status_ipsec.php(345): array_key_first(NULL)
#1 /usr/local/www/status_ipsec.php(51): print_ipsec_body()
#2 {main}
  thrown in /usr/local/www/status_ipsec.php on line 345
[29-Jun-2023 09:53:43 US/Central] PHP Fatal error:  Uncaught TypeError: array_key_first(): Argument #1 ($array) must be of type array, null given in /usr/local/www/status_ipsec.php:345

A customer hit this on 23.05. I will attempt to reproduce it, but we should add a check for this situation either way.


Files

error.jpg (92 KB) error.jpg aleksei prokofiev, 10/11/2023 09:14 AM
Actions

Also available in: Atom PDF