Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th September 2008, 17:00
plathw plathw is offline
Junior Member
 
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default GD Library error - undefined function imageantialias

I am getting the following error that I believe tells me that GD Library is not working properly:

Fatal error: Call to undefined function imageantialias() in /var/www/web40/web/cap.php on line 51

I am running Ubuntu with ISPconfig. I checked my phpinfo and GD library shows the following:

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.10
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

Any ideas on what could be going on?
Reply With Quote
Sponsored Links
  #2  
Old 9th September 2008, 18:11
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,016
Thanks: 7
Thanked 56 Times in 51 Posts
Default

The only hint the php doc's give, that this function only exists with the bundled version of GD, so I'd guess this is not the "bundled" one.

Does
var_dump( function_exists('imageantialias'));
return false?

Also
var_dump( function_exists('imagecreatetruecolor'));
should return false is it is another "truecolorimageonly" function.
Reply With Quote
  #3  
Old 9th September 2008, 21:34
plathw plathw is offline
Junior Member
 
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

That should be the GD bundled with ubuntu, but I'm not 100% sure.

How would I run those? Sorry, kind of a noob here.
Reply With Quote
  #4  
Old 10th September 2008, 17:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
Default

Quote:
Originally Posted by plathw View Post
How would I run those? Sorry, kind of a noob here.
You can put them in a PHP script, e.g. like this:
PHP Code:
<?php

if (false === var_dumpfunction_exists('imageantialias'))) echo 'error1';
if (
false === var_dumpfunction_exists('imagecreatetruecolor'))) echo 'error2';
?>
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 10th September 2008, 18:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
Default

This post from Ben (should be post #4 in this thread) got lost today because of a server failure. I apologize and add it again for the sake of completeness:

Quote:
Originally Posted by Ben View Post
np

just open your shell and type the following:

php -r "var_dump( function_exists('imageantialias'));"
and
php -r "var_dump( function_exists('imagecreatetruecolor'));"

That should for my expectiation output both true or both false.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 18th September 2008, 22:40
plathw plathw is offline
Junior Member
 
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
You can put them in a PHP script, e.g. like this:
PHP Code:
<?php

if (false === var_dumpfunction_exists('imageantialias'))) echo 'error1';
if (
false === var_dumpfunction_exists('imagecreatetruecolor'))) echo 'error2';
?>
Here is the output:
Code:
bool(false) bool(true)
Reply With Quote
  #7  
Old 19th September 2008, 18:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
Default

So the imageantialias does not exist. Which distribution are you using, and how exactly did you install PHP?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 22nd September 2008, 19:41
plathw plathw is offline
Junior Member
 
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

I did the Ubuntu/ISPconfig perfect set up here:

http://www.howtoforge.org/perfect_setup_ubuntu_6.06
Reply With Quote
  #9  
Old 23rd September 2008, 21:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
 
Default

It seems you must compile PHP yourself:
http://ubuntuforums.org/archive/index.php/t-203376.html
http://ubuntuforums.org/showthread.php?t=506801

But you can also try this:
https://bugs.launchpad.net/ubuntu/+s...647/comments/6
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
SuSE Enterprise, PHP binary coming with ISPConfig does not work properly NexusTechUS Installation/Configuration 1 26th April 2007 20:03
installing Perl module GD - ran into problems Ovidiu Installation/Configuration 6 19th September 2006 09:32
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 05:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.