Project

General

Profile

Actions

Regression #12817

closed

PHP error when terminating OpenVPN sessions via the dashboard widget

Added by Yuri Weinstein about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
OpenVPN
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.05
Release Notes:
Default
Affected Version:
2.6.0
Affected Architecture:
All

Description

If a user clicks on x next to the session on the OpenVPN dashboard widget as here

PHP ERROR is thrown and this functionality is broken

PHP errors
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', '192.168.70.13:4...')
#1 {main}
thrown @ 2022-02-17 07:15:22


Files

clipboard-202202170719-kvzt7.png (6.56 KB) clipboard-202202170719-kvzt7.png Yuri Weinstein, 02/17/2022 09:19 AM

Related issues

Related to Feature #12416: Support OpenVPN ``client-kill`` to terminate remote clients instead of clearing their sessionResolvedViktor Gurov

Actions
Has duplicate Bug #12825: PHP Fatal error when attempting to kill an established OVPN connection via the dashboard widgetDuplicate

Actions
Has duplicate Bug #12858: OpenVPN bug, close connection errorDuplicate

Actions
Actions

Also available in: Atom PDF