chillerlan / php-qrcode

A PHP QR Code generator and reader with a user-friendly API.
https://smiley.codes/qrcode/
Apache License 2.0
2.01k stars 302 forks source link

having problem in php 7.2 #84

Closed sahibhussain closed 3 years ago

sahibhussain commented 3 years ago

Fatal error: Uncaught chillerlan\QRCode\QRCodeException: ext-gd not loaded in /var/www/html/sanskrit/vendor/chillerlan/php-qrcode/src/Output/QRImage.php:57 Stack trace: #0 /var/www/html/sanskrit/vendor/chillerlan/php-qrcode/src/QRCode.php(225): chillerlan\QRCode\Output\QRImage->__construct(Object(chillerlan\QRCode\QROptions), Object(chillerlan\QRCode\Data\QRMatrix)) #1 /var/www/html/sanskrit/vendor/chillerlan/php-qrcode/src/QRCode.php(125): chillerlan\QRCode\QRCode->initOutputInterface('https://sanskri...') #2 /var/www/html/sanskrit/admin/add-geeta.php(191): chillerlan\QRCode\QRCode->render('https://sanskri...', '../images/qr/G7...') #3 /var/www/html/sanskrit/admin/add-geeta.php(220): uploadQR('749') #4 {main} thrown in /var/www/html/sanskrit/vendor/chillerlan/php-qrcode/src/Output/QRImage.php on line 57

codemasher commented 3 years ago

It's right there in the error message: "ext-gd not loaded" which means, you'll need to install the GD extension. Alternatively, use the Markup output module, e.g. SVG.