Bug #13873
closedPHP Errors on FRR Global Settings
0%
Description
When navigating to the Global Settings tab under Services --> FRR Global/Zebra --> Global Settings, the following error is thrown:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_bgp.inc:69 Stack trace: #0 /usr/local/pkg/frr.inc(222): frr_get_bgp_neighbor_list(false, true, false, 'BGP Neighbor: ', 'bgp|') #1 /usr/local/www/pkg_edit.php(412) : eval()'d code(1): frr_get_route_destinations() #2 /usr/local/www/pkg_edit.php(412): eval() #3 /usr/local/www/pkg_edit.php(1460): display_row(0, NULL, 'routetarget', 'select_source', Array, 'Static Route Ta...', NULL) #4 {main} thrown in /usr/local/pkg/frr/inc/frr_bgp.inc on line 69 PHP ERROR: Type: 1, File: /usr/local/pkg/frr/inc/frr_bgp.inc, Line: 69, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/frr/inc/frr_bgp.inc:69 Stack trace: #0 /usr/local/pkg/frr.inc(222): frr_get_bgp_neighbor_list(false, true, false, 'BGP Neighbor: ', 'bgp|') #1 /usr/local/www/pkg_edit.php(412) : eval()'d code(1): frr_get_route_destinations() #2 /usr/local/www/pkg_edit.php(412): eval() #3 /usr/local/www/pkg_edit.php(1460): display_row(0, NULL, 'routetarget', 'select_source', Array, 'Static Route Ta...', NULL) #4 {main} thrown
Files
Updated by Danilo Zrenjanin over 2 years ago
I couldn't reproduce this behavior on 22.05 or 23.01-RC.
frr 1.2_3
Was there any specific config in FRR?
We need more details to confirm this bug report.
Updated by Jim Pingle over 2 years ago
I can't reproduce it either, even from a clean install that has never had FRR before, but I can see why it might happen:
if (is_array($config['installedpackages']['frrbgpneighbors']['config'])) {
foreach ($config['installedpackages']['frrbgpneighbors']['config'] as $nei) {
That code needs converted to the new style.
It might only be hit if the config has a weird/broken/incomplete (but not missing) <frrbgpneighbors>
tag/contents so having the relevant FRR contents of the config.xml from the box that hit this error would be helpful.
Updated by Kris Phillips over 2 years ago
- Status changed from New to Closed
No longer able to recreate this. Not sure what caused it before, but I was testing on a fresh install of 23.01 and only installed the FRR package. I made no configuration changes at all. Likely a bad package install or file system issue.
Updated by Lev Prokofev almost 2 years ago
- File PHP_errors (6).log PHP_errors (6).log added
I get this error on 23.05, without any config except enabling the service and setting the password. PHP error log attached. Re-installing the package cleared the errors.