Bug #13564
closed
pfSense - Feature #13446: Upgrade PHP from 7.4 to 8.1
PHP error after creating a Route Map
Added by Danilo Zrenjanin about 2 years ago.
Updated almost 2 years ago.
Plus Target Version:
23.01
Description
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #0 devel-main-n255799-28f6f5e488e: Fri Oct 14 06:28:01 UTC 2022 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-master-main/obj/amd64/5sNqxS3O/var/jenkins/workspace/pfSense-CE-snapshots-master-main/sources/FreeBSD-src-dev
Crash report details:
PHP Errors:
[15-Oct-2022 09:52:22 Etc/UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/pkg.php:484
Stack trace:
#0 {main}
thrown in /usr/local/www/pkg.php on line 484
No FreeBSD crash data found.
Files
- Subject changed from PHP error after creating a Route Map in /pkg.php?xml=frr/frr_global_routemaps.xml to PHP error after creating a Route Map
- Status changed from New to Confirmed
I can confirm this bug report. Creating an empty Route Map produces this error even when not settings are applied.
- Parent task set to #13446
- Status changed from Confirmed to Feedback
- Assignee set to Reid Linnemann
I believe this is fixed by the resolution for #13642. Can you retest?
- Status changed from Feedback to New
I still get errors here:
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 /etc/inc/pkg-utils.inc(707) : eval()'d code(1): frr_generate_config()
#3 /etc/inc/pkg-utils.inc(707): eval()
#4 /etc/rc.start_packages(66): sync_package('FRR')
#5 {main}
thrown @ 2022-12-08 11:15:24
I neglected to tick the portrevision when I fixed this in #13642, I have corrected that and the next build should have the corrected code for sorting routemaps.
- Status changed from New to Feedback
- % Done changed from 0 to 100
- Is duplicate of Bug #13642: PHP Error: frr_zebra.inc:159 added
The above commit adds a workaround if the user's config.xml already has empty config tags in the frrglobalroutemaps tag.
- 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.
Also available in: Atom
PDF