Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call to undefined function gd_info()

When I have activated the theme at local then it is showing me "Call to undefined function gd_info() in /var/www/html/difc/wp-content/themes/grandconference/lib/admin.lib.php on line 283 ". I don't know why this error occurs for the local set-up I have followed below steps:

  1. I have created a local instance of WordPress.
  2. I have uploaded the Grand Conference theme at local.
  3. When I activate the theme, it is showing me above error.

Please guide me if I missed some step, I have followed to installation step from ref:- https://help.market.envato.com/hc/en-us/articles/202821510?_ga=2.35691877.497224052.1498724559-280673764.1489144428 .

When I comment the line 283 in the admin.lib.php file then the theme is working fine for me.

like image 353
Vishal Gupta Avatar asked Sep 06 '25 03:09

Vishal Gupta


2 Answers

I have installed PHP GD lib on my local machine now it is working fine.

Here is the command for install GD lib in Ubuntu.

sudo apt-get install php5-gd

sudo service apache2 restart
like image 70
Vishal Gupta Avatar answered Sep 07 '25 21:09

Vishal Gupta


For those which will come to see this question. In addition to installing php-gd, you need to restart the apache and php-fpm, if you have php-fpm installed.

sudo yum install php-gd
sudo service httpd restart
sudo service php-fpm restart
like image 33
Pamira Avatar answered Sep 07 '25 22:09

Pamira