was working fine, then all of a sudden, the images for the Anti-Bot / Image Verification do not display (see attached image), forcing me to disable that feature.
Do you have any idea what can cause this or where I can look?
Thanks.
Hello Markman1!
Please check it in different browsers. If captcha is not working in a certain browser, it's browser settings/plugins problem.
If it happens in all browsers, it can be a server problem. Please check this forum thread with the same problem [url=“verification image - Configuration - CS-Cart Community Forums”]verification image - Configuration - CS-Cart Community Forums
Also, clear the admin and browser cache.
Best regards, Alt-team
Hi,
In app/lib/other/captcha/captcha.php
find imageftttext line (after //write text to image) and close it with //
do like this. You did not need to compile php again.
// imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i], array());
imagestring($this->oImage, $iFontSize, $iX, $iY-20, $this->sCode[$i], $iTextColour);
I am having the same problem. Can you take a look at the code? I didn't quite understand where to put everything.
// write text to image
imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i], array());
if ($this->bCharShadow) {
$iOffsetAngle = 0;//rand(-10, 10);
$iRandOffsetX = rand(-5, 5);
$iRandOffsetY = rand(-5, 5);
imagefttext($this->oImage, $iFontSize, $iOffsetAngle, $iX + $iRandOffsetX, $iY + $iRandOffsetY, $iShadowColour, $sCurrentFont, $this->sCode[$i], array());
}
}