PHP Fatal error: Uncaught UnexpectedValueException
-
Hi,
I have three sites on the same server, all running NinjaFirewall. Since 21 November, two of the three are logging the following error:
[21-Nov-2025 18:25:09 UTC] PHP Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct(/home/xxxx/public_html/wp-content/nfwlog/session): Failed to open directory: No such file or directory in /home/xxx/public_html/wp-content/plugins/ninjafirewall/lib/class-helpers.php:29Stack trace: 0 /home/xxxx/public_html/wp-content/plugins/ninjafirewall/lib/class-helpers.php(29): DirectoryIterator->__construct('/home/proofs01/…') 1 /home/xxxx/public_html/wp-content/plugins/ninjafirewall/lib/utils.php(633): NinjaFirewall_helpers::nfw_glob('/home/xxxx/…', '^sess_', true, true) 2 /home/xxxx/public_html/wp-includes/class-wp-hook.php(324): nfw_garbage_collector() 3 /home/xxxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) 4 /home/xxxx/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 5 /home/xxxx/public_html/wp-cron.php(191): do_action_ref_array('nfwgccron', Array) 6 {main}thrown in /home/xxxx/public_html/wp-content/plugins/ninjafirewall/lib/class-helpers.php on line 29If I check in
/wp-content/nflog/, I see the following:- Site 1 – the
/session/and/sigs/directories are present – [no error thrown in the error log] - Site 2 – the
/session/and/sigs/directories are not present – [error in the error log] - Site 3 – the
/session/directory is missing, but the/sigs/directory is present – [error in the error log]
When I inspect Site 1, the
/session/and/sigs/directories just contain an emptyindexfile. Besides the issue of why these directories are missing, is the solution simply to copy over the missing directories?The page I need help with: [log in to see the link]
- Site 1 – the
You must be logged in to reply to this topic.