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

    pfSense CE 2.8.0 - PHP Error

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 3 Posters 280 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.
    • T
      Tablet3381
      last edited by

      Upgraded from 2.7.2 to 2.8.0, rebooted again after the install failed to see if the issue was a one off, but that did not resolve the issue. Also read the Troubleshooting Upgrades section, and didn't see anything that appeared to apply in this situation. Log below:

      Crash report begins. Anonymous machine information:

      amd64
      15.0-CURRENT
      FreeBSD 15.0-CURRENT #1 RELENG_2_8_0-n256081-401ec5f685b9: Wed May 21 23:53:51 UTC 2025 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_8_0-main/obj/amd64/0q9vjGjc/var/jenkins/workspace/pfSense-CE-snapshots-2_8_0-main/sources/FreeBSD-src-RE

      Crash report details:

      PHP Errors:
      [01-Jun-2025 20:37:00 US/Pacific] PHP Fatal error: Uncaught TypeError: Nette\Utils\Html::insert(): Argument #2 ($child) must be of type Nette\HtmlStringable|string, null given, called in /usr/local/pfSense/include/vendor/nette/utils/src/Utils/Html.php on line 580 and defined in /usr/local/pfSense/include/vendor/nette/utils/src/Utils/Html.php:610
      Stack trace:
      #0 /usr/local/pfSense/include/vendor/nette/utils/src/Utils/Html.php(580): Nette\Utils\Html->insert(NULL, NULL)
      #1 /usr/local/www/widgets/include/disks.inc(100): Nette\Utils\Html->addHtml(NULL)
      #2 /usr/local/www/widgets/widgets/disks.widget.php(65): disks_compose_widget_table(Array)
      #3 /usr/local/www/index.php(428): include('/usr/local/www/...')
      #4 {main}
      thrown in /usr/local/pfSense/include/vendor/nette/utils/src/Utils/Html.php on line 610

      No FreeBSD crash data found.

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

        So the upgrade failed?

        Or it shows this error after logging into the gui after upgrading?

        T 1 Reply Last reply Reply Quote 0
        • T
          Tablet3381 @stephenw10
          last edited by

          @stephenw10 yes, the update failed, and it reverted to 2.7.2, with some loss of functionality. It also turns out that the original 2.7.2 install media was still mounted in the hypervisor, and only 1Gb of RAM had been allocated, so either issue may have been the root cause.

          Is there a reinstall/repair best practices guide for this situation? Thanks

          tinfoilmattT 1 Reply Last reply Reply Quote 0
          • tinfoilmattT
            tinfoilmatt @Tablet3381
            last edited by

            @Tablet3381 If it were me, restore last config I'm comfortable with (up to and including troubleshooting of lost functionality after failed upgrade), and simply perform upgrade again with two potential root causes you identified now remediated.

            Whether or not you roll back to a config backup from before the first update attempt—or just try the upgrade all over again, with your most recent config changes included, is a fair best practices question. Reasonable minds could differ. Six of one, half-dozen of another if the second attempt goes smooth.

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

              Hmm, that error is probably just a symptom of the upgrade not completing then.

              If it's a VM I would just roll-back to the last good snap and try again.

              T 1 Reply Last reply Reply Quote 0
              • T
                Tablet3381 @stephenw10
                last edited by

                @stephenw10 that seems like a good guess at this point, reinstall and restore to prior config worked, CE 2.8 is running fine. Thanks everyone!

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