Bug #13642
closedpfSense - Feature #13446: Upgrade PHP from 7.4 to 8.1
PHP Error: frr_zebra.inc:159
100%
Description
This prevented boot completing. I had to uninstall FRR at the CLI.
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_zebra.inc:159
23.01-DEVELOPMENT (arm64) built on Tue Nov 08 16:16:38 UTC 2022 FreeBSD 14.0-CURRENT
Related issues
Updated by Danilo Zrenjanin about 2 years ago
Tested against:
2.7.0-DEVELOPMENT (amd64) built on Fri Nov 11 06:06:08 UTC 2022 FreeBSD 14.0-CURRENT
I couldn't replicate the issue with Global FRR switch on. Is there anything specific that needs to be set in FRR?
Updated by Alhusein Zawi about 2 years ago
The issue occurs when adding a route map
PHP errors:
PHP ERROR: Type: 1, File: /usr/local/pkg/frr/inc/frr_zebra.inc, Line: 418, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_zebra.inc:418
Stack trace:
#0 /usr/local/pkg/frr/inc/frr_zebra.inc(821): frr_zebra_generate_routemaps()
#1 /usr/local/pkg/frr.inc(669): frr_generate_config_zebra()
#2 /usr/local/www/pkg_edit.php(245) : eval()'d code(2): frr_generate_config()
#3 /usr/local/www/pkg_edit.php(245): eval()
#4 {main}
23.01-DEVELOPMENT (amd64)
built on Fri Nov 11 06:05:57 UTC 2022
FreeBSD 14.0-CURRENT
Updated by Danilo Zrenjanin about 2 years ago
There is a different redmine for that issue:
https://redmine.pfsense.org/issues/13564
Updated by Reid Linnemann about 2 years ago
Root cause of this appears to be an empty <config> element being written under the frrglobalroutemaps package. Due to how <config> is treated as a list element in the xml parser, this results in installedpackages/frrglobalroutemaps/config being an array of size 1 with an empty string element, and that empty string element is expected to be an array by the package code.
Updated by Reid Linnemann about 2 years ago
- Status changed from New to Confirmed
Updated by Reid Linnemann about 2 years ago
- Status changed from Confirmed to In Progress
Updated by Reid Linnemann about 2 years ago
- Status changed from In Progress to Feedback
Fixed in 4a256a0
Updated by Reid Linnemann about 2 years ago
- Has duplicate Bug #13564: PHP error after creating a Route Map added
Updated by Reid Linnemann about 2 years ago
I had neglected originally to bump the portrevision, so the package was not actually rebuilt. That has been done as of c17f51a
Updated by Jim Pingle about 2 years ago
- Status changed from Feedback to Resolved
This appears to be OK on a current snap with the latest package (After removing some leftover debug prints in the base).
It cleaned up the bad tag and I can also list and create route map entries.
Updated by Jim Pingle over 1 year ago
- Target version deleted (
2.7.0) - Plus Target Version deleted (
23.01)