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
260 stars 76 forks source link

Error generating Dynamic QR Code #3

Closed mothvision closed 2 years ago

mothvision commented 2 years ago

Hi, firstly thanks for this. I am still learning how to code and I have installed it successfully in a local apache/MySQL server. But whenever I try to create a Dynamic QR Code this error appears. Can you help me?


The Error:

Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php:1848 Stack trace: #0 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1848): implode(Array, ',') #1 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1572): MysqliDb->_buildInsertQuery(Array) #2 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1533): MysqliDb->_buildQuery(NULL, Array) #3 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(820): MysqliDb->_buildInsert('dynamic_qrcodes', Array, 'INSERT') #4 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\Dynamic_Qrcode\Dynamic_Qrcode.php(127): MysqliDb->insert('dynamic_qrcodes', Array) #5 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\add_dynamic.php(22): Dynamic_Qrcode->add() #6 {main} thrown in C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php on line 1848

giandonatoinverso commented 2 years ago

hello what have you entered? the error you see tells you to enter a string of type C (I invite you to learn more).

Inviato da iPhone

Il giorno 22 set 2021, alle ore 01:04, Mateus Ferreira @.***> ha scritto:



Hi, firstly thanks for this. I am still learning how to code and I have installed it successfully in a local apache/MySQL server. But whenever I try to create a Dynamic QR Code this error appears. Can you help me?


The Error:

Fatal error: Uncaught TypeError: implode(): Argument #2https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/2 ($array) must be of type ?array, string given in C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php:1848 Stack trace: #0 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1848): implode(Array, ', ') #1https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/pull/1 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1572): MysqliDb->_buildInsertQuery(Array) #2https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/2 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1533): MysqliDb->_buildQuery(NULL, Array) #3https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/3 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(820): MysqliDb->_buildInsert('dynamic_qrcodes', Array, 'INSERT') #4 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\Dynamic_Qrcode\Dynamic_Qrcode.php(127): MysqliDb->insert('dynamic_qrcodes', Array) #5 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\add_dynamic.php(22): Dynamic_Qrcode->add() #6 {main} thrown in C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php on line 1848

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ5M2KEOAQDYM7UGGYA56GDUDEFNLANCNFSM5EP4ML7A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mothvision commented 2 years ago

exemple There is an exemple.

mothvision commented 2 years ago

Hello giandonato, I think the implode() does not work as expected in php 8.0 In php 7.4.23 work fine.

One more time, thanks for everything!

giandonatoinverso commented 2 years ago

Thanks to you for using my project. I'm glad to hear it. Sorry if I didn't answer you but I'm very busy with study and work. In fact this project has never been tested with PHP 8. If you like, while studying php, you can collaborate on the project by adding the functionality to create different profiles that create Qrcode.


Da: Mateus Ferreira @.> Inviato: mercoledì 22 settembre 2021 18:58 A: giandonatoinverso/PHP-Dynamic-Qr-code @.> Cc: Giandonato Inverso @.>; Comment @.> Oggetto: Re: [giandonatoinverso/PHP-Dynamic-Qr-code] Error generating Dynamic QR Code (#3)

Hello giandonato, I think the implode() does not work as expected in php 8.0 In php 7.4.23 work fine.

One more time, thanks for everything!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/3#issuecomment-925110813, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ5M2KADMX6MR22MS4SMBYTUDIDJ3ANCNFSM5EP4ML7A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.