Project

General

Profile

Actions

Bug #13873

closed

PHP Errors on FRR Global Settings

Added by Kris Phillips over 2 years ago. Updated almost 2 years ago.

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

0%

Estimated time:
Plus Target Version:
23.01
Affected Version:
Affected Plus Version:
Affected Architecture:
All

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

PHP_errors (6).log (7.69 KB) PHP_errors (6).log Lev Prokofev, 06/21/2023 11:38 AM
Actions #1

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.

Actions #2

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.

Actions #3

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.

Actions #4

Updated by Lev Prokofev almost 2 years ago

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.

Actions

Also available in: Atom PDF