Forums

Anti-spam image not showing

Mimmi 07 Apr, 2010
Thank you for your great form and support! I've a problem I hope you might solve.

Joomla 1.5.8
Where do I check the version of Chronoform?

My form:
http://www.liv-laga.no/index.php?option=com_chronocontact&chronoformname=innme

Yesterday my cousin moved my site that he hosts to a new server. After that the Captcha anti-spam image will not show. I've spent this morning googling for answers without any luck. GD is installed (see attachment), but my cousin said there might be some php.ini parameters that we need to change. I have no idea where to start...

In FAQ 30 you say:

To use ImageVerification you must turn it ON in the AntiSpam tab and add {imageverification} to your form code where you want the verification to appear.


I've done this.

ImageVerification depends on some PHP features being installed on your site. From version 2.3 there is a diagnostic on the Anti Spam tab that checks for these and will not enable ImageVerification if they are not installed.


I don't know my version, but I include a print screen.

If all is well there and images still do not display then you can get more 'informative' error reports if you Change the header at line 17 in chrono_verification.php from header("Content-type: image/png"); to header("Content-type: text/html");. Then point your browser directly to that file i.e. http://www.example.com/components/com_chronocontact/chrono_verification.php
It will show PHP errors on things php cannot handle. This should provide enough input to fix the problem.



I did this and got a message I don't understand:
Fatal error: Call to undefined function imagecreatefrompng() in /home/admin.liv-laga.no/public_html/components/com_chronocontact/chrono_verification.php on line 96

Line 95-98
}else{
	$image = imagecreatefrompng("background.png");
	$greylight = imagecolorallocate($image, 199, 199, 199);
	$black = imagecolorallocate($image, 0, 0, 0); 


May you point me in the right direction?
Mimmi 11 Apr, 2010
Thank you. He read you post and discovered that he hadn't installed the php-gd, just libgd. Now there is a connection between php og gd and everything works smoothly! Now the GD-info that's blank in my second image reads:

GD Info
GD Version 2.0 or higher
FreeType Support Yes
PNG Support Yes

😀 😀 😀
sergioag20 15 Mar, 2011
]Hello .. I'm having a similar problem, the image will not appear on the form
and also does not appear on the back end following screens.

Thanks for any help
[attachment=1]chono1.jpg[/attachment]
[attachment=2]chono2.jpg[/attachment]
[attachment=0]chono3.jpg[/attachment]
GreyHead 15 Mar, 2011
Hi sergioag20,

Please post a link to the form so we can take a quick look.

Bob
GreyHead 16 Mar, 2011
Hi sergioag20;

If you go to the image URL the result is an error message

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email]webmaster@arvorar.org.br[/email] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at <!-- w --><a class="postlink" href="http://www.arvorar.org.br">www.arvorar.org.br</a><!-- w --> Port 80


This is usually the result of the server set up. It may be a problem with permissions, or with a security module blocking the URL or the file type.

Please check with your host, or try the ReCaptcha verification which works in a different way.

Bob
sergioag20 16 Mar, 2011
OK thank you Bob,

I'll check with the host
This topic is locked and no more replies can be posted.