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
243 stars 73 forks source link

Error when changing the default database password #78

Closed JD-Gimbit closed 5 months ago

JD-Gimbit commented 5 months ago

When deploying the stack using docker-compose, upon logging in using superadmin/superadmin. I get the following error Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'qrcode'@'172.24.0.3' (using password: YES) in /var/www/html/lib/MysqliDb/MysqliDb.php:323 Stack trace: #0 [internal function]: mysqli->__construct('php-dynamic-qrc...', 'qrcode', Object(SensitiveParameterValue), 'qrcode', 3306, NULL) #1 /var/www/html/lib/MysqliDb/MysqliDb.php(323): ReflectionClass->newInstanceArgs(Array) #2 /var/www/html/lib/MysqliDb/MysqliDb.php(415): MysqliDb->connect('default') #3 /var/www/html/lib/MysqliDb/MysqliDb.php(1988): MysqliDb->mysqli() #4 /var/www/html/lib/MysqliDb/MysqliDb.php(1594): MysqliDb->_prepareQuery() #5 /var/www/html/lib/MysqliDb/MysqliDb.php(738): MysqliDb->_buildQuery(1) #6 /var/www/html/lib/MysqliDb/MysqliDb.php(764): MysqliDb->get('users', 1, '*') #7 /var/www/html/authenticate.php(17): MysqliDb->getOne('users') #8 {main} thrown in /var/www/html/lib/MysqliDb/MysqliDb.php on line 323

After changing the password back to the default the error goes away, I am able to log in.

giandonatoinverso commented 5 months ago

The error refers to an incorrect database password. Check the yaml file.

I tried creating the stack and it works, so I close the issue