Error when creating OpenVPN setup via Wizard
-
I'm using pfSense PLUS 23.09.1-RELEASE and I've been having trouble connecting VPN clients, I think since the last release, but not exactly sure. I wanted to start completely over, so I deleted the OpenVPN config and went through the Wizard setup at VPN \ OpenVPN \ Wizards. Once I got to the last page and hit Finish, I got the error below and the OpenVPN config was never created. Has anyone else seen this?
Crash report begins. Anonymous machine information: amd64 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400094 #1 plus-RELENG_23_09_1-n256200-3de1e293f3a: Wed Dec 6 21:00:32 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_09_1-main/obj/amd64/Obhu6gXB/var/jenkins/workspace/pfSense-Plus-snapshots-23_09_1 Crash report details: PHP Errors: [26-Mar-2024 18:43:00 America/Indianapolis] PHP Fatal error: Uncaught TypeError: urlencode(): Argument #1 ($string) must be of type string, array given in /etc/inc/openvpn.inc:1197 Stack trace: #0 /etc/inc/openvpn.inc(1197): urlencode(Array) #1 /etc/inc/openvpn.inc(1660): openvpn_reconfigure('server', Array) #2 /etc/inc/openvpn.inc(1867): openvpn_restart('server', Array) #3 /usr/local/www/wizards/openvpn_wizard.inc(762): openvpn_resync('server', Array) #4 /usr/local/www/wizard.php(116) : eval()'d code(1): step12_submitphpaction() #5 /usr/local/www/wizard.php(116): eval() #6 {main} thrown in /etc/inc/openvpn.inc on line 1197 [26-Mar-2024 18:44:56 America/Indianapolis] PHP Fatal error: Uncaught TypeError: urlencode(): Argument #1 ($string) must be of type string, array given in /etc/inc/openvpn.inc:1197 Stack trace: #0 /etc/inc/openvpn.inc(1197): urlencode(Array) #1 /etc/inc/openvpn.inc(1660): openvpn_reconfigure('server', Array) #2 /etc/inc/openvpn.inc(1867): openvpn_restart('server', Array) #3 /usr/local/www/wizards/openvpn_wizard.inc(762): openvpn_resync('server', Array) #4 /usr/local/www/wizard.php(116) : eval()'d code(1): step12_submitphpaction() #5 /usr/local/www/wizard.php(116): eval() #6 {main} thrown in /etc/inc/openvpn.inc on line 1197 No FreeBSD crash data found.
-
@rayrayrayraydog
Did you enter a shared key with special characters?
If so try simple ASCII characters and change it later in the server settings. -
@viragomann I finally got it to work. It's something to do with the server certificate I had selected to use which was self-signed. I chose another and the wizard worked.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.