Error Viewing Captcha *HELP ME BEAT*

17 years 1 week ago #36313 by mattioi
Error Viewing Captcha *HELP ME BEAT* was created by mattioi
I have installed CB's Captcha plugin... its not showing the image. When I go to the direct of the image it reads

Fatal error: Call to undefined function: imagettfbbox() in /home/FTPUSERNAME/public_html/components/com_comprofiler/plugin/user/plug_cbcaptcha/captchasecurityimages.php on line 141

--

I run a pretty standard install.

Centos Linux Running Cpanel
Community Builder: 1.0.2
Joomla: 1.0.12 Stable
GD2 is installed
/com_comprofiler/showconfig/images displays the following:
--
ImageMagick Auto dectected ImageMagick 6.0.7
NetPBM Not installed
GD1 library Not installed
GD2 library Auto dectected bundled (2.0.28 compatible)
--

And lastly here is my phpinfo page
webioi.com/phpinfo.php

I think that should be everything... I'd love to know whats wrong here.

Post edited by: mattioi, at: 2007/04/25 17:26

Please Log in to join the conversation.

17 years 1 week ago #36317 by nant
Replied by nant on topic Re:Error Viewing Captcha *HELP ME BEAT*
mattioi wrote:

I have installed CB's Captcha plugin... its not showing the image. When I go to the direct of the image it reads

Fatal error: Call to undefined function: imagettfbbox() in /home/FTPUSERNAME/public_html/components/com_comprofiler/plugin/user/plug_cbcaptcha/captchasecurityimages.php on line 141

--

I run a pretty standard install.

Centos Linux Running Cpanel
Community Builder: 1.0.2
Joomla: 1.0.12 Stable
GD2 is installed
/com_comprofiler/showconfig/images displays the following:
--
ImageMagick Auto dectected ImageMagick 6.0.7
NetPBM Not installed
GD1 library Not installed
GD2 library Auto dectected bundled (2.0.28 compatible)
--

And lastly here is my phpinfo page
webioi.com/phpinfo.php

I think that should be everything... I'd love to know whats wrong here.

Post edited by: mattioi, at: 2007/04/25 17:26


Beat is too busy working on next releases ...

also this issue has been answered before ...

if you google imagettfbbox you will see the php manual page and you will see that :

[code:1]imagettfbbox
(PHP 4, PHP 5)

imagettfbbox — Give the bounding box of a text using TrueType fonts

Description
array imagettfbbox ( float $size, float $angle, string $fontfile, string $text )

This function calculates and returns the bounding box in pixels for a TrueType text.

Parameters

size
The font size in pixels

angle
Angle in degrees in which text will be measured

fontfile
The name of the TrueType font file (can be a URL). Depending on which version of the GD library that PHP is using, it may attempt to search for files that do not begin with a leading '/' by appending '.ttf' to the filename and searching along a library-defined font path

text
The string to be measured


Return Values
imagettfbbox() returns an array with 8 elements representing four points making the bounding box of the text:

0 lower left corner, X position
1 lower left corner, Y position
2 lower right corner, X position
3 lower right corner, Y position
4 upper right corner, X position
5 upper right corner, Y position
6 upper left corner, X position
7 upper left corner, Y position


The points are relative to the text regardless of the angle, so "upper left" means in the top left-hand corner seeing the text horizontally.

See Also
Note: This function requires both the GD library and the » FreeType library.

[/code:1]

from the last paragraph and the captcha thread you see that the Freetype library needs to be supported by GD2.

it is obvious that you have not installed it.

please contact your provider to resolve this.

Please Log in to join the conversation.

17 years 1 week ago #36489 by mattioi
Replied by mattioi on topic Re:Error Viewing Captcha *HELP ME BEAT*
heh i am the provider its a cpanel box... what packadge should be installed?

Please Log in to join the conversation.

17 years 1 week ago #36515 by jomindo
Replied by jomindo on topic Re:Error Viewing Captcha *HELP ME BEAT*
Hi.. i think i had same/similar problem.. :(
my captcha doesnt appear, that show like a broken image..

this the properties:
[code:1]index2.php?option=com_comprofiler&task=tabclass&Itemid=1&tab=getcaptchatab&no_html=1[/code:1]
What should i do?
i've meet the requirement:

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


Post edited by: jomindo, at: 2007/04/27 22:54

Post edited by: jomindo, at: 2007/04/27 23:51

Post edited by: jomindo, at: 2007/04/27 23:52
Attachments:

Please Log in to join the conversation.

17 years 1 week ago #36695 by mattioi
Replied by mattioi on topic Re:Error Viewing Captcha *HELP ME BEAT*
My problem was GD was installed but apache was not recompilled with freetype... works like a champ now

-M

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.189 seconds

Facebook Twitter LinkedIn