• Resolved barnez

    (@pidengmor)


    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:29
    Stack 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 29

    If 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 empty index file. 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]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor bruandet

    (@bruandet)

    It looks like you’re still running version 4.8.1 That error should be gone after upgrading to version 4.8.2.

    Thread Starter barnez

    (@pidengmor)

    Thanks for reply. All three sites have the latest NF version 4.8.2 installed.

    Plugin Contributor bruandet

    (@bruandet)

    Version 4.8.2 was released on November 28th, but your log shows “21-Nov-2025”. Can you check again your log and see if there’s any error that occurred after the 4.8.2 update?

    Thread Starter barnez

    (@pidengmor)

    Ahh, just checked the changelog for 4.8.2. No fresh errors have been thrown since 29/30 November, likely when the plugin was updated on these sites.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.