
9th September 2008, 17:00
|
|
Junior Member
|
|
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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?
|

9th September 2008, 18:11
|
|
Moderator
|
|
Join Date: Jul 2006
Posts: 1,016
Thanks: 7
Thanked 56 Times in 51 Posts
|
|
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.
|

9th September 2008, 21:34
|
|
Junior Member
|
|
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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.
|

10th September 2008, 17:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
Originally Posted by plathw
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_dump( function_exists('imageantialias'))) echo 'error1';
if (false === var_dump( function_exists('imagecreatetruecolor'))) echo 'error2';
?>
|

10th September 2008, 18:00
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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
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.
|
|

18th September 2008, 22:40
|
|
Junior Member
|
|
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Quote:
Originally Posted by falko
You can put them in a PHP script, e.g. like this:
PHP Code:
<?php
if (false === var_dump( function_exists('imageantialias'))) echo 'error1';
if (false === var_dump( function_exists('imagecreatetruecolor'))) echo 'error2';
?>
|
Here is the output:
Code:
bool(false) bool(true)
|

19th September 2008, 18:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
So the imageantialias does not exist. Which distribution are you using, and how exactly did you install PHP?
|

22nd September 2008, 19:41
|
|
Junior Member
|
|
Join Date: Oct 2007
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
|
|
|

23rd September 2008, 21:24
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 05:04.
|
|
Recent comments
23 hours 17 min ago
1 day 5 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 19 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 9 hours ago
2 days 14 hours ago
2 days 14 hours ago