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

Syntax errors after installing #44

Closed yourpersonalserver closed 1 year ago

yourpersonalserver commented 1 year ago

Hi, first of all: thanks for developing such an interesting piece of software.

After successful installation in a test server, we're seeing that not all pages are opening for some reason, for example:

After initial logging in with the default superadmin user, we try to open the profile or settings menu in the upper-right corner of the screen. They both do nothing.

Trying to list the dynamic qr codes existing gives us this error message:

Parse error: syntax error, unexpected '?' in /home/www/subdomain.domain.tld/qrcode/dynamic_qrcodes.php on line 29

Trying to see the user's list gives this message:

Parse error: syntax error, unexpected '?' in /home/www/subdomain.domain.tld/qrcode/admin_users.php on line 32

Both errors appear to be related to an issue with the page query, but we don't seem to understand where the root cause is located.

Several other pages produce similar syntax error messages.

We made sure MySQL version is 5.6 as requested by the comments inside the code… I'm not sure what else could be the reason for this behavior.

Do you have an idea of what are we doing wrong?

Best regards.

giandonatoinverso commented 1 year ago

Hi you have to use a php version greater than 7.0 because otherwise the Null Coalescing Operator (??) is not recognized

yourpersonalserver commented 1 year ago

Perfect, it's working now :100:

Thank you so much for the help and for creating such a wonderful solution.

Have a great week :smiley: