Project

General

Profile

Actions

Bug #13285

closed

Uncaught ArgumentCountError to function openvpn_kill_client()

Added by DRago_Angel [InV@DER] almost 2 years ago. Updated almost 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
Due date:
% Done:

0%

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

Description

Killing session for user using OpenVPN Dashboard Widget or using OpenVPN Status page do not works.
On Widget next error appiers:

PHP ERROR: Type: 1, File: /etc/inc/openvpn.inc, Line: 2106, Message: Uncaught ArgumentCountError: Too few arguments to function openvpn_kill_client(), 2 passed in /usr/local/www/widgets/widgets/openvpn.widget.php on line 285 and exactly 3 expected in /etc/inc/openvpn.inc:2106
Stack trace:
#0 /usr/local/www/widgets/widgets/openvpn.widget.php(285): openvpn_kill_client('server1', '1.1.1.1:...')
#1 {main}

Note: 1.1.1.1 is client IP

On OpenVPN Status page "blue X" kill button do not create any PHP errors but do nothing instead. "red circle with white X inside" halt button works as expected

Reproduced on pfSense Plus 22.01, XG-7100U

Actions #1

Updated by DRago_Angel [InV@DER] almost 2 years ago

Sorry, found https://redmine.pfsense.org/issues/12817 but it not mention status page, not sure 12817 also resolve OpenVPN status page, can you please check?

Actions #2

Updated by Jim Pingle almost 2 years ago

  • Status changed from New to Duplicate

There are no errors when terminating clients on the status page or widget on 22.05/2.7.0 snapshots.

Actions #3

Updated by DRago_Angel [InV@DER] almost 2 years ago

Okay, thank you Jim for test and quick feedback.

Actions

Also available in: Atom PDF