Project

General

Profile

Actions

Bug #6350

closed

Auto Config Backup - Uncaught Exception

Added by Simon Trigona almost 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
AutoConfigBackup
Target version:
-
Start date:
05/12/2016
Due date:
% Done:

0%

Estimated time:
2.00 h
Plus Target Version:
Affected Version:
2.3
Affected Plus Version:
Affected Architecture:
All

Description

When attempting to "Show Info" and unable to decrypt the backup, the following warning is generated:

Warning: Invalid argument supplied for foreach() in /usr/local/www/autoconfigbackup.php on line 416 Call Stack: 0.0001 232040 1. {main}() /usr/local/www/autoconfigbackup.php:0 

Looking through the file in question: https://github.com/pfsense/FreeBSD-ports/blob/devel/sysutils/pfSense-pkg-AutoConfigBackup/files/usr/local/www/autoconfigbackup.php you probably need to fall back onto loading the backup list if loading a backup fails. Do this by running this block: https://github.com/pfsense/FreeBSD-ports/blob/devel/sysutils/pfSense-pkg-AutoConfigBackup/files/usr/local/www/autoconfigbackup.php#L250-L293 if the previous "download" block generates any errors.

Actions

Also available in: Atom PDF