FRR PHP Errors after deleting in-use route maps
-
I deleted a few route maps that were still applied to some BGP Neighbors. There was no warning saying they were still in use. First error is by going to FRR-BGP. Second error is after editing the neighbor, verifying route map is set to None, and then saving.
BGP Error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_zebra.inc:87 Stack trace: #0 /usr/local/www/pkg_edit.php(412) : eval()'d code(1): frr_get_routemap_list() #1 /usr/local/www/pkg_edit.php(412): eval() #2 /usr/local/www/pkg_edit.php(1460): display_row(0, 'none', 'distributeroute...', 'select_source', Array, 'Route Map', NULL) #3 {main} thrown in /usr/local/pkg/frr/inc/frr_zebra.inc on line 87 PHP ERROR: Type: 1, File: /usr/local/pkg/frr/inc/frr_zebra.inc, Line: 87, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_zebra.inc:87 Stack trace: #0 /usr/local/www/pkg_edit.php(412) : eval()'d code(1): frr_get_routemap_list() #1 /usr/local/www/pkg_edit.php(412): eval() #2 /usr/local/www/pkg_edit.php(1460): display_row(0, 'none', 'distributeroute...', 'select_source', Array, 'Route Map', NULL) #3 {main} thrown
Neighbor Save Error:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_zebra.inc:87 Stack trace: #0 /usr/local/pkg/frr/inc/frr_bgp.inc(733): frr_get_routemap_list() #1 /usr/local/pkg/frr/inc/frr_bgp.inc(946): frr_bgp_generate_neighbors() #2 /usr/local/pkg/frr.inc(672): frr_generate_config_bgp() #3 /usr/local/www/pkg_edit.php(245) : eval()'d code(1): frr_generate_config() #4 /usr/local/www/pkg_edit.php(245): eval() #5 {main} thrown in /usr/local/pkg/frr/inc/frr_zebra.inc on line 87 PHP ERROR: Type: 1, File: /usr/local/pkg/frr/inc/frr_zebra.inc, Line: 87, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_zebra.inc:87 Stack trace: #0 /usr/local/pkg/frr/inc/frr_bgp.inc(733): frr_get_routemap_list() #1 /usr/local/pkg/frr/inc/frr_bgp.inc(946): frr_bgp_generate_neighbors() #2 /usr/local/pkg/frr.inc(672): frr_generate_config_bgp() #3 /usr/local/www/pkg_edit.php(245) : eval()'d code(1): frr_generate_config() #4 /usr/local/www/pkg_edit.php(245): eval() #5 {main} thrown
-
I was able to get rid of both errors by re-create the maps, but even after saving the neighbors, I am unable to delete the maps without getting the same error.
-
Final update: on another firewall (also on 23.01), even after going into each neighbor and selecting none for the map, then deleting the map, I get the same error.
I am leaving one map and that seems to keep the error from appearing.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.