Project

General

Profile

Actions

Bug #15581

closed

OpenVPN wizard generates PHP error

Added by Danilo Zrenjanin 4 days ago. Updated about 21 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
OpenVPN
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Release Notes:
Force Exclusion
Affected Plus Version:
Affected Architecture:

Description

The system throws a PHP error after defining an OpenVPN server using the wizard on a stock configuration.

Tested against:

24.08-DEVELOPMENT (amd64)
built on Tue Jun 25 6:00:00 UTC 2024
FreeBSD 15.0-CURRENT

I used all default values.

Crash report begins.  Anonymous machine information:

amd64
15.0-CURRENT
FreeBSD 15.0-CURRENT #1 plus-devel-main-n256339-5c71199c72c: Tue Jun 25 06:36:10 UTC 2024     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/obj/amd64/2zgsqn3D/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/sources/FreeBS

Crash report details:

PHP Errors:
[26-Jun-2024 17:27:33 Etc/UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/openvpn.inc:2295
Stack trace:
#0 /etc/inc/openvpn.inc(856): openvpn_create_dirs()
#1 /etc/inc/openvpn.inc(1633): openvpn_reconfigure('server', Array)
#2 /etc/inc/openvpn.inc(1834): openvpn_restart('server', Array)
#3 /usr/local/www/wizards/openvpn_wizard.inc(739): 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 2295

Files

PHP_errors (6).log (601 Bytes) PHP_errors (6).log Danilo Zrenjanin, 06/26/2024 05:32 PM
Actions #1

Updated by Danilo Zrenjanin 4 days ago

  • Subject changed from OpenVPN PHP error to OpenVPN wizard generates PHP error
Actions #2

Updated by Lev Prokofev 1 day ago

I can confirm this behavior

Crash report begins.  Anonymous machine information:

amd64
15.0-CURRENT
FreeBSD 15.0-CURRENT #1 plus-devel-main-n256339-5c71199c72c: Mon Jun 24 06:37:34 UTC 2024     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/obj/amd64/2zgsqn3D/var/jenkins/workspace/pfSense-Plus-snapshots-master-main/sources/FreeBS

Crash report details:

PHP Errors:
[29-Jun-2024 05:21:51 Etc/UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/openvpn.inc:2295
Stack trace:
#0 /etc/inc/openvpn.inc(856): openvpn_create_dirs()
#1 /etc/inc/openvpn.inc(1633): openvpn_reconfigure('server', Array)
#2 /etc/inc/openvpn.inc(1834): openvpn_restart('server', Array)
#3 /usr/local/www/wizards/openvpn_wizard.inc(739): 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 2295

No FreeBSD crash data found.

Tested on

24.08-DEVELOPMENT (amd64)
built on Mon Jun 24 6:00:00 UTC 2024
FreeBSD 15.0-CURRENT

Actions #3

Updated by Marcos M about 21 hours ago

  • Status changed from New to Closed
  • Assignee set to Marcos M
  • Release Notes changed from Default to Force Exclusion

Tracked in NG#16837.

Actions

Also available in: Atom PDF