Error In PHP GD Library

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jhundemoral
Forum Newbie
Posts: 1
Joined: Tue Aug 23, 2011 12:18 am
Location: Quezon City
Contact:

Error In PHP GD Library

Post by Jhundemoral »

Help Please.

I don't know how to configure the gd library and where to locate it in my site. Before my website reside on a spinweb server and it functions normally no error message occur. But when I already transfer the website into another web server wich is the verio i've already get an error message
---------------------------------------------------------------------------------------------------------------------------------------------
warning: Division by zero in /home/richwe73/public_html/sites/all/modules/imageapi/imageapi.module on line 221.
----------------------------------------------------------------------------------------------------------------------------------------------
when i preview my website the images goes X means no images appears or it can't locate the images.

any help would be appreciated...
greip
Forum Commoner
Posts: 39
Joined: Tue Aug 23, 2011 8:23 am
Location: Oslo, Norway

Re: Error In PHP GD Library

Post by greip »

You need to verify that GD is installed and if it's missing contact the hosting company to make them configure it for you.

Create a page calling phpinfo() to check if GD is installed or not:

<?php
phpinfo();
?>

You should also have a look at the source code of the web page which is unable to display images and verify that the URLs for images are as expected.
Post Reply