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
269 stars 77 forks source link

Help with installing #47

Closed Lovasz-Akos closed 11 months ago

Lovasz-Akos commented 1 year ago

Trying to run the project locally I get this error when trying to open the install.php image

I can't get the docker image started either image

Am I missing requirements or trying to start it in a completely wrong way?

Lovasz-Akos commented 1 year ago

managed to get the non-docker version running, it seems windows handles relative paths weirdly so I had to change the config file to point to my environment.php with an absolute path

Lovasz-Akos commented 1 year ago

trying to log in, I get this error message

Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php on line 323

Warning: mysqli::__construct(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php on line 323

Fatal error: Uncaught Exception: Connect Error 2002: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php:326 Stack trace: #0 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(415): MysqliDb->connect('default') #1 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(1988): MysqliDb->mysqli() #2 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(1594): MysqliDb->_prepareQuery() #3 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(738): MysqliDb->_buildQuery(1) #4 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(764): MysqliDb->get('admin_accounts', 1, '*') #5 C:\xampp\htdocs\qrcode\authenticate.php(25): MysqliDb->getOne('admin_accounts') #6 {main} thrown in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php on line 326
giandonatoinverso commented 1 year ago

@0xRenegade could you find a solution to the problem?

0xRenegade commented 1 year ago

trying to log in, I get this error message

Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php on line 323

Warning: mysqli::__construct(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php on line 323

Fatal error: Uncaught Exception: Connect Error 2002: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php:326 Stack trace: #0 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(415): MysqliDb->connect('default') #1 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(1988): MysqliDb->mysqli() #2 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(1594): MysqliDb->_prepareQuery() #3 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(738): MysqliDb->_buildQuery(1) #4 C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php(764): MysqliDb->get('admin_accounts', 1, '*') #5 C:\xampp\htdocs\qrcode\authenticate.php(25): MysqliDb->getOne('admin_accounts') #6 {main} thrown in C:\xampp\htdocs\qrcode\lib\MysqliDb\MysqliDb.php on line 326

Did you set your database information in environment.php? Also to fix the docker error, try this:

https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/tree/master/docker#readme

giandonatoinverso commented 11 months ago

just released 2.0 version