Bug #13953
closed
PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configuration
Added by Christos Messios almost 2 years ago.
Updated over 1 year ago.
Plus Target Version:
23.05
Description
PHP ERROR: Type: 1, File: /usr/local/www/firewall_rules.php, Line: 805, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/firewall_rules.php:805
Stack trace:
#0 {main}
Files
- Project changed from pfSense Plus to pfSense
- Subject changed from PHP ERROR: Type: 1 to PHP Error loading Floating rule tab with OpenVPN group rules when there are no OpenVPN instances in the configuration
- Category changed from Rules / NAT to Rules / NAT
- Priority changed from Normal to Low
- Target version set to 2.7.0
- Affected Plus Version deleted (
23.01)
- Plus Target Version set to 23.05
- Affected Version set to 2.7.0
Looks like maybe you have rules defined for the OpenVPN group on the Floating tab but you have no OpenVPN clients or servers present on that system.
Is that correct?
You can add a dummy client or service entry for the moment and then fix your invalid rules, then delete it again. Or edit them out of the config.
The only way I could reproduce this was:
1. Add an OpenVPN instance
2. Add a floating rule using OpenVPN as its interface
3. Delete the OpenVPN instance
4. Try to view the Floating tab
Jim Pingle wrote in #note-1:
Looks like maybe you have rules defined for the OpenVPN group on the Floating tab but you have no OpenVPN clients or servers present on that system.
Is that correct?
You can add a dummy client or service entry for the moment and then fix your invalid rules, then delete it again. Or edit them out of the config.
The only way I could reproduce this was:
1. Add an OpenVPN instance
2. Add a floating rule using OpenVPN as its interface
3. Delete the OpenVPN instance
4. Try to view the Floating tab
Worked, thank you!
- Has duplicate Bug #13982: PHP error: /usr/local/www/firewall_rules.php:805 added
- Assignee set to Jim Pingle
- Status changed from New to Feedback
- % Done changed from 0 to 100
Tested the patch on the:
23.01-RELEASE (amd64)
built on Fri Feb 10 20:06:33 UTC 2023
FreeBSD 14.0-CURRENT
The patch fixes it. I was able to see the floating rule without PHP errors after removing the OpenVPN instance.
I am marking this ticket resolved.
- Status changed from Feedback to Resolved
Also available in: Atom
PDF