Fatal error version 4.4.0.6 premium when viewing details in event log

Hi,

On version Fail2Ban WP 4.4.0.6 (premium) a Fatal error occurs, when viewing details in the event log section.

PHP version 7.4.30

See trace below:

[05-Aug-2022 12:19:09 UTC] PHP Fatal error: Uncaught TypeError: Typed property org\lecklider\charles\wordpress\wp_fail2ban\premium\MenuFixer::$old_nopriv must be string or null, array used in /var/www/html/wp-content/plugins/wp-fail2ban-premium/premium/admin/lib/menu-fixer.php:84
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(307): org\lecklider\charles\wordpress\wp_fail2ban\premium\MenuFixer->base_filter__parent_file()
#1 /var/www/html/wp-includes/plugin.php(191): WP_Hook->apply_filters()
#2 /var/www/html/wp-admin/menu-header.php(38): apply_filters()
#3 /var/www/html/wp-admin/admin-header.php(258): require('/var/www/html/w...')
#4 /var/www/html/wp-admin/admin.php(239): require_once('/var/www/html/w...')
#5 {main}
thrown in /var/www/html/wp-content/plugins/wp-fail2ban-premium/premium/admin/lib/menu-fixer.php on line 84

Regards,

—R

Thanks for the report!

The fix for this was done in the 5.0 branch, but for reasons I’ve yet to determine wasn’t included in the last release.

I’ll release 4.4.0.7 once I’ve checked the other 5.0 fixes are included - won’t be long!

Thanks you for the info, we will wait for the next release.