Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zakir1929 opened this issue Apr 20, 2020 · 3 comments

Comments

@zakir1929
Copy link

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

@Gregwar
Copy link
Owner

Gregwar commented Apr 20, 2020

Hello,

Did you install the php-gd extension?

@zakir1929
Copy link
Author

zakir1929 commented Apr 20, 2020

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.

@soonio
Copy link

soonio commented Mar 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants