Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Kill OpenVPN from pfSense Dashboard PHP Error

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 603 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • raistlinkellR
      raistlinkell
      last edited by

      Hi Team,
      just wanted to bring this to someone's attention. Over the weekend just gone, I upgraded my Netgate SG-3100 from 21.05 to 22.01. The site I work at uses OpenVPN extensively for Roadwarrior users.

      If I kill an active OpenVPN session using the dashboard, I now receive a PHP error

      [20-Mar-2022 10:16:38 Australia/XXXXX] PHP Fatal error:  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', '10.56.111.12:54...')
      #1 {main}
        thrown in /etc/inc/openvpn.inc on line 2106
      
      1 Reply Last reply Reply Quote 0
      • viktor_gV
        viktor_g Netgate
        last edited by

        Fixed in the upstream:
        https://redmine.pfsense.org/issues/12817

        You can install the System Patches pkg:
        https://docs.netgate.com/pfsense/en/latest/development/system-patches.html

        and apply patch id 3ade222beb2cae2c0681ed69d4e5a0c82c6303f9

        raistlinkellR 1 Reply Last reply Reply Quote 2
        • raistlinkellR
          raistlinkell @viktor_g
          last edited by

          @viktor_g thank you for the quick response. Very much appreciated.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.