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

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools