• Resolved wp_kc

    (@wp_kc)


    [23-Apr-2025 19:39:46 America/Denver] PHP Fatal error:  Uncaught TypeError: ksort(): Argument #1 ($array) must be of type array, bool given in /wp-content/plugins/ninjascanner/lib/tab_quarantine.php:104
    Stack trace:
    #0 /wp-content/plugins/ninjascanner/lib/tab_quarantine.php(104): ksort(false)
    #1 /wp-content/plugins/ninjascanner/lib/tab_quarantine.php(19): nscan_get_quarantined()
    #2 /wp-content/plugins/ninjascanner/lib/ui.php(117): require_once('/home/....')
    #3 /wp-content/plugins/ninjascanner/lib/ui.php(30): nscan_menu_quarantine()
    #4 /wp-includes/class-wp-hook.php(324): nscan_main_menu('')
    #5 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #6 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /wp-admin/admin.php(260): do_action('ninjafirewall_p...')
    #8 {main}
    thrown in /wp-content/plugins/ninjascanner/lib/tab_quarantine.php on line 104

    This error happens in PHP v8.2 and v8.3

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

    (@bruandet)

    The quarantine file seems corrupted.
    Try to rename or delete it: wp-content/ninjascanner/nscan[xxx-random-characters-here-xxx]/quarantine/quarantine.php

    Thread Starter wp_kc

    (@wp_kc)

    That didn’t fix it. But based on your response, I deleted the plugin, made sure all the plugin files and directories were deleted from the server, then re-installed it. After that, the Quarantine tab started working again.

    Thanks!

    Thread Starter wp_kc

    (@wp_kc)

    Forgot to mark resolved

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

The topic ‘Clicking Quarantine tab causes fatal error.’ is closed to new replies.