Fatal Error
-
When I try to access the webgui this happens:
Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /etc/inc/config.lib.inc:172 Stack trace: #0 /etc/inc/config.lib.inc(172): fwrite(false, 'a:40:{s:7:"vers...') #1 /etc/inc/config.lib.inc(147): generate_config_cache(Array) #2 /etc/inc/config.inc(141): parse_config() #3 /etc/inc/gwlb.inc(25): require_once('/etc/inc/config...') #4 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...') #5 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...') #6 /etc/inc/config.gui.inc(39): require_once('/etc/inc/notice...') #7 /etc/inc/auth.inc(34): require_once('/etc/inc/config...') #8 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...') #9 /usr/local/www/guiconfig.inc(62): require_once('/etc/inc/authgu...') #10 /usr/local/www/index.php(46): require_once('/usr/local/www/...') #11 {main} thrown in /etc/inc/config.lib.inc on line 172 PHP ERROR: Type: 1, File: /etc/inc/config.lib.inc, Line: 172, Message: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /etc/inc/config.lib.inc:172 Stack trace: #0 /etc/inc/config.lib.inc(172): fwrite(false, 'a:40:{s:7:"vers...') #1 /etc/inc/config.lib.inc(147): generate_config_cache(Array) #2 /etc/inc/config.inc(141): parse_config() #3 /etc/inc/gwlb.inc(25): require_once('/etc/inc/config...') #4 /etc/inc/functions.inc(35): require_once('/etc/inc/gwlb.i...') #5 /etc/inc/notices.inc(26): require_once('/etc/inc/functi...') #6 /etc/inc/config.gui.inc(39): require_once('/etc/inc/notice...') #7 /etc/inc/auth.inc(34): require_once('/etc/inc/config...') #8 /etc/inc/authgui.inc(27): include_once('/etc/inc/auth.i...') #9 /usr/local/www/guiconfig.inc(62): require_once('/etc/inc/authgu...') #10 /usr/local/www/index.php(46): require_once('/usr/local/www/...') #11 {main} thrown Fatal error: Uncaught ValueError: Path cannot be empty in /etc/inc/notices.inc:101 Stack trace: #0 /etc/inc/notices.inc(101): fopen('', 'w') #1 /etc/inc/config.lib.inc(1162): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors') #2 [internal function]: pfSense_clear_globals() #3 {main} thrown in /etc/inc/notices.inc on line 101
-
@b_hammer said in Fatal Error:
/etc/inc/notices.inc(101): fopen('', 'w')
The file shouldn't be empty ( '' ) but '/tmp/noctices'
What happened is :
/etc/inc/notices.inc start be reading (including) /etc/inc/globals.inc and that didn't happen.
The most important variables aren't set (unknown) and that breaks ... pretty everything.It's console time.
Check free disk space.
How to Run a pfSense Software File System Check (5/2020)