Fatal error: Uncaught Error: Call to undefined function Zxing\imagecreatefromstring()
opened this issue · comments
I got the following fatal error
Fatal error: Uncaught Error: Call to undefined function Zxing\imagecreatefromstring() in C:\MAMP\htdocs\qr_reader\vendor\khanamiryan\qrcode-detector-decoder\lib\QrReader.php:35 Stack trace: #0 C:\MAMP\htdocs\qr_reader\test.php(16): Zxing\QrReader->__construct('uploads/Meshaal...') #1 {main} thrown in C:\MAMP\htdocs\qr_reader\vendor\khanamiryan\qrcode-detector-decoder\lib\QrReader.php on line 35
I use MAMP with PHP version 7.4.6
I get the same error at Bubka/2FAuth#35 did you manage to solve it in the end?
Make sure you have php7.4-gd installed. Install with sudo apt-get install php7.4-gd