Call To Undefined Function Imagecreatefromjpeg() And GD Enabled


Answer :

I think you've installed an incomplete version of gd.
When you compile the gd extension, use the flag --with-jpeg-dir=DIR and --with-freetype-dir=DIR

ps. dont forget make clean

picture below is the incomplete version of gd:

enter image description here

picture below is the complete version of gd: enter image description here


In my case, GD was missing after upgrading to PHP 7.3. So, I just added it by using the following command :

sudo apt-get install php7.3-gd 

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?