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

    PHP error after rebooting with filesystem check

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 490 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.
    • F
      fox hound
      last edited by fox hound

      This has happened before after rebooting with a filesystem check. I recovered by reinstalling, however I don’t want to configure significant changes since last saved config.

      #2 /etc/inc/config.gui. inc (53): parse_config()
      #3 /etc/inc/auth. inc(34): require_once(' /etc/inc/config...
      #4 / etc/inc/openvpn, inc(36): require_once('/etc/inc/auth.1
      #5 /etc/inc/filter. inc(30): require_once(' /etc/inc/openvp.
      #5 / etc/inc/ipsec. inc(25): require_once('/etc/inc/filter..
      #7 /etc/inc/gwlb. inc (27): require_once(' /etc/1nc/1psec....
      #8 /etc/inc/functions. inc (35): require_once(' /etc/inc/gulb.1..
      #9 /etc/inc/notices. inc (26): require_once('/etc/inc/functi...
      #10 /etc/inc/config. inc(37): require_once('/etc/inc/notice...
      #11 /etc/rc. banner (27): require_once('/etc/inc/config...')
      #12 (main)
      thrown
      Fatal error: Uncaught ValueError: Path cannot be empty in /etc/inc/notices. inc: 135
      Stack trace:
      #0 /etc/inc/notices. inc(135): fopen('', 'w')
      #1 /etc/inc/config, 11b. inc(1154): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors' )
      #2 linternal function]: pfSense_clear_globals()
      #3 (main)
      thrown in /etc/inc/notices.inc on line 135
      

      Hopefully this is accurate since I took a photo with my phone and used OCR.

      I’ve booted in single user and ran fsck -fy / five times and rebooted but this error persists. If I try again in single user it just “repairs” and says it’s clean but issue repeats.

      Also tried “removing” (by renaming) notices.inc but I get another error with a different file trying to access that file?

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

        The error there is from trying to display a notice but it indicates some earlier PHP error that generated the notice. Do you know what that was.

        You can get the config off the firewall from single user mode. You can recover it when reinstalling if you need to.

        F 1 Reply Last reply Reply Quote 0
        • F
          fox hound @stephenw10
          last edited by

          @stephenw10 I am not certain what the error was. Where could I look? Should I search the notices?

          I can pull the config off onto a USB from single user? Where would the config location be? Also, how would I use it while reinstalling?

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

            The config is in /cf/conf/config.xml. You can mount a flash drive and copy it out if you need to.

            You can put the config onto the install drive to have it auto-added to a new install:
            https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#restore-configuration-from-usb-during-install

            You can also choose to recover the existing config when you boot the installer:
            https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#recover-config-xml-from-existing-installation

            Steve

            F 1 Reply Last reply Reply Quote 0
            • F
              fox hound @stephenw10
              last edited by

              @stephenw10 I managed to pull the config. For some reason it was empty? Perhaps when I tried to reload last known configuration? Luckily I had plenty of backups, so thanks for your help.

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