PHP Fatal error ... status_interfaces.php:137
-
Hello,
Good day everyone.
I am noticing a PHP error when attempting to open the Status > Interfaces menu. I'm on 2.7.2-RELEASE. Not a show stopper, but inconvenient. Reporting here, in case it's not just me. I've reviewed bug 13981. "vlangroups" does not appear in the config file I download from Diag > Backup and Restore.
[07-May-2024 14:01:25 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_interfaces.php:137 Stack trace: #0 {main} thrown in /usr/local/www/status_interfaces.php on line 137 [07-May-2024 14:04:17 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/status_interfaces.php:137 Stack trace: #0 {main} thrown in /usr/local/www/status_interfaces.php on line 137
Best Regards,
Bob -
Hmm, did the config get imported from another version at all? There are no switch references in it?
-
@stephenw10 We had to do a fresh install due to the recent small EFI partition issue. Config was imported after install. Only reference to "switch" is an empty...
<switches></switches> <swports></swports>
-
Hmm, I wouldn't expect to see either of those tags in a CE install. Was this config previously in a 2100 or 3100 perhaps?
Since you can't have switches present in CE you should be able to just remove those tags.
-
@stephenw10 said in PHP Fatal error ... status_interfaces.php:137:
Hmm, I wouldn't expect to see either of those tags in a CE install. Was this config previously in a 2100 or 3100 perhaps?
NoCorrection: This config was previously on Netgate hardware, but when it failed, Netgate didn't have any replacements in stock so we had to get different hardware and moved to CE. The previous hardware was a SG-4860, but it has been since Jan. 2021 that we've been on CE.
I'll try removing them and report back. Thank you.
Is the correct way to upload the edited config the normal method via Diag > Backup and Restore?
-
Yes that is the best way.
For a small edit like this you could likely just edit the config file in place and then reboot.