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

Dynamic codes not redirecting #18

Closed vedranhas closed 2 years ago

vedranhas commented 2 years ago

Hello.

Installation was without any problems. A version of PHP 7.3 is used. Generated dynamic QR codes are not redirecting to URLs entered during code creations. Scanned QR will just go to: https://installation-domain.com/read.php?id=xxxxxx (nonexisting page)

Thank you in advance for your support.

giandonatoinverso commented 2 years ago

Hi there should be no problems with the PHP version. Some users have had the same problem as you because they kept the path / PHP-Dynamic-Qr-code / and you should remove it... In any case I recommend that you use Xdebug in a reasonable IDE to find errors.

vedranhas commented 2 years ago

Hello again and thank you for your fast reply.

Are you talking about the script installation path? The script is installed in a subfolder: https://instalation-domain.com/qrcode/ What I should remove? Sorry for the question, I am a user, not a coder, and not sure what and from where I should remove / PHP-Dynamic-Qr-code /. Should the script be installed in the root directory of the website to work properly?

giandonatoinverso commented 2 years ago

Ji if you have the path /qrcode then that's right and I confirm that the script must be installed in the root directory. Without seeing the problem I don't know how to help you it could depend on several factors 😅. Not being a programmer you might miss something

GeorgeVasil commented 1 year ago

https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/2

That worked for me ^

You should put the read.php into the main dir because it is missing and change line 12 to include 'config/config.php';