sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
336 stars 174 forks source link

[8.1] Fatal Error on BanList - Search #807

Closed Rushaway closed 2 years ago

Rushaway commented 2 years ago

What are the steps to reproduce this issue?

  1. Go on Ban List page
  2. Open search bar
  3. Click on Date and put only the year (ex : 2022 See Screenshoot)
  4. Error.

What happens?

Fatal Error.

What were you expecting to happen?

Same results as Master branch (7.4)

Any logs, error output, etc.?

Fatal error: Uncaught TypeError: mktime(): Argument #4 ($month) must be of type ?int, string given in /var/www/vhosts/nide.gg/upgradebans.nide.gg/pages/page.banlist.php:329 Stack trace: #0 /var/www/vhosts/nide.gg/upgradebans.nide.gg/pages/page.banlist.php(329): mktime() #1 /var/www/vhosts/nide.gg/upgradebans.nide.gg/includes/page-builder.php(143): require_once('...') #2 /var/www/vhosts/nide.gg/upgradebans.nide.gg/index.php(29): build() #3 {main} thrown in /var/www/vhosts/nide.gg/upgradebans.nide.gg/pages/page.banlist.php on line 329

Any other comments?

What versions of software are you using?

Operating System: nginx SourceBans++ Version: 1.7.0 (php 8.1 branch) with the lastest release. PHP Version: 8.1.10 MySQL Version: 10.6.7-MariaDB-2ubuntu1 - Ubuntu 22.04 Link to your project: https://upgradebans.nide.gg/index.php Link to a phpinfo() output: https://upgradebans.nide.gg/phpinfo.php