Project

General

Profile

Actions

Bug #13249

open

Running playback comands multiple times results in PHP error

Added by Marcos M 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Console Menu
Target version:
-
Start date:
Due date:
% Done:

0%

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

Description

Using the console, enter option 12 then run playback svc restart unbound twice. On the second run, the following is logged:

Jun 6 01:08:28     php     98029     pfSsh.php: PHP ERROR: Type: 64, File: /usr/local/sbin/pfSsh.php(374) : eval()'d code, Line: 29, Message: Cannot redeclare usage() (previously declared in /usr/local/sbin/pfSsh.php(374) : eval()'d code:30)
Jun 6 01:08:28     php     98029     pfSsh.php: New alert found: PHP ERROR: Type: 64, File: /usr/local/sbin/pfSsh.php(374) : eval()'d code, Line: 29, Message: Cannot redeclare usage() (previously declared in /usr/local/sbin/pfSsh.php(374) : eval()'d code:30) 
Actions #1

Updated by Jim Pingle 2 months ago

That is known and expected, they aren't designed to run more than once in the same session the way you are doing it. It's fixable, but each script would have to be considered separate as they may not all be as easy to fix.

Actions

Also available in: Atom PDF