Captcha icon indicating copy to clipboard operation
Captcha copied to clipboard

Fatal error in PHP 7.4 : Uncaught Error: Call to undefined function Gregwar\Captcha\imagejpeg() in

Open zakir1929 opened this issue 5 years ago • 3 comments

Hello Guys!!!

I see there is an error in php 7.4 version with Call to undefined function Gregwar\Captcha\imagejpeg()

this error is coming up on line number 565 in below file vendor/gregwar/captcha/src/Gregwar/Captcha/CaptchaBuilder.php

Can you please see it and fix it !!!

Thanks

zakir1929 avatar Apr 20 '20 15:04 zakir1929

Hello,

Did you install the php-gd extension?

Gregwar avatar Apr 20 '20 16:04 Gregwar

yes I have it installed already. Thanks for a fast response.

I think the issue seems to be with php 7.4.2 version GD extension when I Installed it from cpanel.

in that version they do not automatically enable the jpeg support.

image

so I think this issue can be closed from your side.

Thanks for a nice library.

zakir1929 avatar Apr 20 '20 16:04 zakir1929

when you install php7.4.x, ./configure -enable-gd --with-jpeg ..and so on.. function imagejpeg need '--with-jpeg'

soonio avatar Mar 09 '21 16:03 soonio