Topic: capcha doesn't work
Hi guys. I've changed my hosting service and there is a issue concerning capcha. I don't understand why it doesn't work anymore.
Look here:
http://www.pasqualemarinelli.com/index. … ude_id=101
P.S. This is Cutenews 1.46
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → capcha doesn't work
Hi guys. I've changed my hosting service and there is a issue concerning capcha. I don't understand why it doesn't work anymore.
Look here:
http://www.pasqualemarinelli.com/index. … ude_id=101
P.S. This is Cutenews 1.46
Hello,
It seems that you do not upload a font file. Check the availability and availability of the font file.
font file is uploaded in cutenews/captcha/ directory.
And this is the code in captcha.php file:
<?php
// include captcha class
require('php-captcha.inc.php');
// define fonts
$aFonts = array('VeraMoBd.ttf');
// create new image
$oPhpCaptcha = new PhpCaptcha($aFonts, 200, 60);
//$oPhpCaptcha->DisplayShadows(true);
$oPhpCaptcha->UseColour(true);
$oPhpCaptcha->Create();
?>
What is wrong?
anybody could help me?
please, help me!
Judging by the resulting error, the font file still was not loaded. Probably, the wrong way is specified.
The font is loaded into PHP-captcha.inc.PHP lines 296 and 304 - you need to check them.
this is line 296 in PHP-captcha.inc.PHP file:
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i], array());
and this is line 304 in PHP-captcha.inc.PHP file:
imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i], array());
could you help me to find what is wrong?
Anybody?
Support_Team, no other suggestion?
The only problem here is that $ sCurrentFont has the wrong path specified, or a path where the file for loading is not located - this can only be corrected if you check all paths and assign either the correct path, or create the necessary folder structure and put the font file. This way is impossible to learn now, you need to use debugging, for example inserting echo $ sCurrentFont before these lines. Open the img-file captcha http://www.pasqualemarinelli.com/a/capt … ?width=144 after you insert debugging, the path should appear. Put the required file there
CutePHP Forums → Problem Solving / Help & Support → capcha doesn't work
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.