Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PHP Fatal error ... status_interfaces.php:137

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 249 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      ohbobva
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Hmm, did the config get imported from another version at all? There are no switch references in it?

        O 1 Reply Last reply Reply Quote 0
        • O
          ohbobva @stephenw10
          last edited by

          @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>
          
          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            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.

            O 1 Reply Last reply Reply Quote 0
            • O
              ohbobva @stephenw10
              last edited by ohbobva

              @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?

              No

              Correction: 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?

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                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.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.