PHP Fatal error on a newly wiped 1541, the FW shuts down without warning.
-
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 3741No FreeBSD crash data found.
-
@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. -
@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? -
@Gertjan Which logs would be helpful to see, I am happy to share whichever one is needed.
again, thank you. -
Try running the command
df -h
to see how much space is available. -
@stephenw10 Thank you for the reply, I have a 2TB drive, and only 1.1GB is used.
-
@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. -
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.
-
@Gertjan How did you solve this error? I'm struggling with it on a couple of appliances