NinjaFirewall breaks cron events
-
nginx/1.25.1
PHP version 8.0.30
WordPress 6.3.1
NinjaFirewall 4.5.9Hello
since a few days the plugin is causing a malfunction in the internal cron scheduler, thus preventing even the other events from running, not just the NFW ones.I have tried to:
? disabling the NFW plugin solves the issue
?? reinstalling the plugin doesn’t helpIf I log into the server console and run the following command, the output shows an error in the NFW code:
$ wp cron event run --due-now
Warning: fopen(/var/www/html/mydomain.com/wp-content/nfwlog/firewall_2023-10.php): Failed to open stream: Permission denied in /var/www/html/mydomain.com/wp-content/plugins/ninjafirewall/lib/utils.php on line 616
PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/mydomain.com/wp-content/plugins/ninjafirewall/lib/utils.php:617
Stack trace: 0 /var/www/html/mydomain.com/wp-content/plugins/ninjafirewall/lib/utils.php(617): fwrite() 1 /var/www/html/mydomain.com/wp-includes/class-wp-hook.php(310): nfw_garbage_collector() 2 /var/www/html/mydomain.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() 3 /var/www/html/mydomain.com/wp-includes/plugin.php(565): WP_Hook->do_action() 4 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(343): do_action_ref_array() 5 phar:///usr/local/bin/wp/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(265): Cron_Event_Command::run_event() 6 [internal function]: Cron_Event_Command->run() 7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() 8 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}() 9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func() 10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke() 11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner->run_command() 12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1256): WP_CLI\Runner->run_command_and_exit() 13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() 14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process() 15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() 16 phar:///usr/local/bin/wp/php/boot-phar.php(11): include(‘…’) 17 /usr/local/bin/wp(4): include(‘…’) 18 {main}thrown in /var/www/html/mydomain.com/wp-content/plugins/ninjafirewall/lib/utils.php on line 617
- The topic ‘NinjaFirewall breaks cron events’ is closed to new replies.