Hi,
PHP 7.4, Wordpress 5.7, WP-Fail2ban: 4.3.0.9
I’m developing WP localy on Windows. On /wp-login.php page I have following warnings:
Warning: Use of undefined constant LOG_LOCAL0 - assumed 'LOG_LOCAL0' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
Warning: Use of undefined constant LOG_LOCAL1 - assumed 'LOG_LOCAL1' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
Warning: Use of undefined constant LOG_LOCAL2 - assumed 'LOG_LOCAL2' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
Warning: Use of undefined constant LOG_LOCAL3 - assumed 'LOG_LOCAL3' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
Warning: Use of undefined constant LOG_LOCAL4 - assumed 'LOG_LOCAL4' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
Warning: Use of undefined constant LOG_LOCAL5 - assumed 'LOG_LOCAL5' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
Warning: Use of undefined constant LOG_LOCAL6 - assumed 'LOG_LOCAL6' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
Warning: Use of undefined constant LOG_LOCAL7 - assumed 'LOG_LOCAL7' (this will throw an Error in a future version of PHP) in **\wp-content\plugins\wp-fail2ban\lib\convert-data.php on line 125
According to https://www.php.net/manual/en/network.constants.php
LOG_LOCAL0 … LOG_LOCAL7 are not available in Windows
I don’t expect the plugin to work properly on Windows. Just after copying the site from the server, I have to remove the plugin locally to log into the admin panel.
Hope you will find a moment to look at it. Thanks!