Actions
Regression #12817
closed
YW
VG
PHP error when terminating OpenVPN sessions via the dashboard widget
Regression #12817:
PHP error when terminating OpenVPN sessions via the dashboard widget
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
Actions