giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
244 stars 73 forks source link

login.php:41 strtotime(date()) - expects at least 1 argument #50

Closed chuank closed 1 year ago

chuank commented 1 year ago

Great project – congrats on putting this all together!

In login.php:41, the date() call should include a mandatory format argument to compare against the expires record. It currently throws an uncaught error:

Fatal error: Uncaught ArgumentCountError: date() expects at least 1 argument, 0 given in /var/www/.../qrcode/login.php:41
Stack trace:
#0 /var/www/.../qrcode/login.php(41): date()
#1 {main} thrown in /var/www/.../qrcode/login.php on line 41
giandonatoinverso commented 1 year ago

what php version are you using?

chuank commented 1 year ago

I'm using 8.1

giandonatoinverso commented 1 year ago

In the readme.me it says that this program is supported only by php <= 7.1

If you want to use php 8.1 I invite you to collaborate and correct the errors