[Fix] Call to undefined function imagecreatefromgif()

By | January 30, 2015

Advertisement from Google

If you get following error:

Call to undefined function imagecreatefromgif()

You just need to install right version of GD. After 2.0.28 gif support was reverted back.


Advertisement from Google

To fix this error:

sudo apt-get install php5-gd

If you are using nginx with php5-fpm do:

sudo /etc/init.d/php5-fpm restart

Leave a Reply

Your email address will not be published. Required fields are marked *