I'm getting a PHP fatal error when accessing Connect Manager in Magento 1.9.4.0.
I've updated to php 7.2 on Ubuntu with Nginx. The files and folders have nginx user as owner and the file permissions are correct.
Everything else seems to work ok, but just can't access the Connect Manager. If I put Magento in developper mode I still get no errors, just the 500 error from the server.
Here's the error:
FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /path/to/magento/downloader/Maged/BruteForce/Validator.php:59
Stack trace:
0 /path/to/magento/downloader/Maged/Controller.php(844): Maged_BruteForce_Validator->isCanLogin()
1 /path/to/magento/downloader/Maged/Controller.php(518): Maged_Controller->dispatch()
2 /path/to/magento/downloader/index.php(36): Maged_Controller::run()
3 {main}
Any ideas how to fix this?