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

    PHP Fatal error on a newly wiped 1541, the FW shuts down without warning.

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 880 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.
    • H
      hemen.mehta
      last edited by

      My firewall crashed hard today, and when it finally came back up, this was the error.
      Sadly, I am not nearly talented enough to begin to fix this, so I would appreciate any and all help.

      amd64
      14.0-CURRENT
      FreeBSD 14.0-CURRENT amd64 1400094 #0 plus-RELENG_23_09-n256163-2763857e770: Wed Nov 1 21:18:24 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_09-main/obj/amd64/WrS3lKLo/var/jenkins/workspace/pfSense-Plus-snapshots-23_09-main/

      Crash report details:

      PHP Errors:
      [06-Dec-2023 10:18:58 America/New_York] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3741
      Stack trace:
      #0 /etc/inc/config.lib.inc.txt config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
      #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
      #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...')
      #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...')
      #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '')
      #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
      #6 /usr/local/www/services_dhcp_edit.php(442): write_config('DHCP Server set...')
      #7 {main}
      thrown in /etc/inc/util.inc on line 3741
      [06-Dec-2023 10:18:58 America/New_York] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3741
      Stack trace:
      #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
      #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
      #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
      #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
      #4 /etc/inc/config.lib.inc(1168): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
      #5 [internal function]: pfSense_clear_globals()
      #6 {main}
      thrown in /etc/inc/util.inc on line 3741
      [06-Dec-2023 10:19:03 America/New_York] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3741
      Stack trace:
      #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
      #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
      #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...')
      #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...')
      #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '')
      #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
      #6 /usr/local/www/services_dhcp_edit.php(442): write_config('DHCP Server set...')
      #7 {main}
      thrown in /etc/inc/util.inc on line 3741
      [06-Dec-2023 10:19:03 America/New_York] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3741
      Stack trace:
      #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
      #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
      #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
      #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
      #4 /etc/inc/config.lib.inc(1168): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
      #5 [internal function]: pfSense_clear_globals()
      #6 {main}
      thrown in /etc/inc/util.inc on line 3741

      No FreeBSD crash data found.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @hemen.mehta
        last edited by Gertjan

        @hemen-mehta said in PHP Fatal error on a newly wiped 1541, the FW shuts down without warning.:

        #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
        #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
        #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...')
        #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...')
        #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '')
        #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
        #6 /usr/local/www/services_dhcp_edit.php(442): write_config('DHCP Server set...')

        The middle one is the one that shows a potential issue.

        Some changes were made on the DHCP server settings page.
        The config is about to be written to disk : write_config('DHCP Server set...')
        .... but something very bad happens : after being written out, it read back in and that failed.

        So, a temptation is made to retrieve a the config file that was set aside (backup) just before this last modification was made .... and that also failed.

        Most common issue is :
        Disk full.
        Also : pick "How to Run a pfSense Software File System Check (5/2020)" from the Netgate video collection and do what is shown.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        H D 3 Replies Last reply Reply Quote 0
        • H
          hemen.mehta @Gertjan
          last edited by

          @Gertjan Thank you for the reply!
          Can this be fixed if I take a backup of my config, and reinstall pfSense+ and then reapply my configuration?

          1 Reply Last reply Reply Quote 0
          • H
            hemen.mehta @Gertjan
            last edited by

            @Gertjan Which logs would be helpful to see, I am happy to share whichever one is needed.
            again, thank you.

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

              Try running the command df -h to see how much space is available.

              H 1 Reply Last reply Reply Quote 0
              • H
                hemen.mehta @stephenw10
                last edited by

                @stephenw10 Thank you for the reply, I have a 2TB drive, and only 1.1GB is used.

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @hemen.mehta
                  last edited by

                  @hemen-mehta said in PHP Fatal error on a newly wiped 1541, the FW shuts down without warning.:

                  I have a 2TB drive, and only 1.1GB is used

                  Ok, that out of the way, time for a small video then ^^
                  This one.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

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

                    Unless perhaps you have RAM disks enabled or some other unusual mount points such that the full drive space is not available.

                    Or a failing drive that just stops allowing writes can appear as a full disk.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dcuadrados @Gertjan
                      last edited by

                      @Gertjan How did you solve this error? I'm struggling with it on a couple of appliances

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