Crash durring wizard setup
-
On step 7 of the wizard setup, it crashes with the info below displayed.
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /usr/local/www/wizards/openvpn_wizard.inc:246 Stack trace: #0 /usr/local/www/wizard.php(219) : eval()'d code(1): step8_stepbeforeformdisplay() #1 /usr/local/www/wizard.php(219): eval() #2 {main} thrown in /usr/local/www/wizards/openvpn_wizard.inc on line 246 PHP ERROR: Type: 1, File: /usr/local/www/wizards/openvpn_wizard.inc, Line: 246, Message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /usr/local/www/wizards/openvpn_wizard.inc:246 Stack trace: #0 /usr/local/www/wizard.php(219) : eval()'d code(1): step8_stepbeforeformdisplay() #1 /usr/local/www/wizard.php(219): eval() #2 {main} thrown
-
Looks like that could only happen if there were no certificates on the system at all, which is exceedingly rare. Someone would have to change the GUI to HTTP (dangerous enough as it is) and also delete the default GUI certificate.
The code could handle that better, but it's still not something anyone should be hitting.
You could make a certificate for now to work around it, either manually or by generating a GUI cert with
pfSsh,php playback generateguicert
from an SSH or console shell prompt.