Forums

Captcha image not showing

mauroed79 10 Jun, 2009
Hi,
congratulations for this lovely extension that just does what it should! Anyway I have a problem that I'd like to solve. I enabled the CAPTCHA protection to avoid spamming, but in the add comment form on my site I can't see the verification image, as shown in the screenshot below. Could somebody tell me what this depends on?
Thanks a lot in advance.
GreyHead 11 Jun, 2009
Hi mauroed79,

Please see FAQ30 to start with, and come and ask again if you still have any problems.

Bob
mauroed79 11 Jun, 2009
Hi GreyHead,
thanks for the quick reply. I hadn't seen the FAQ, but anyway I still have a problem. In which file is the comment form code? Is it in the component or in the plugin directory?
Thanks again
GreyHead 11 Jun, 2009
Hi mauroed79,

Sorry, I hadn't noticed this was a ChronoComments thread - and I really have no ideas about the ChronoComments code.

Usually the image not showing is either because GD is not installed or there are permissions problems because of the server setup.

Bob
mauroed79 13 Jun, 2009
Hi everybody,
since I'm not able to get the CAPTCHA function working on my server for my Chrono comments, I'm trying to integrate the comment form with a remotely hosted CAPTCHA service provided by http://www.protectwebform.com/. I already managed to integrate the CAPTCHA image display in the code of comment-form.html.php file in the templates directory, but now I need to add some extra code in the file that processes the comment.

I would need to know which is the file that processes the comment. I already tried to look up in the form code, but I just found this

<form action="index2.php?option=com_chronocomments&task=savecomment" id="ccform_5" name="ccform_5" method="post" >


that doesn't help me at all.

Can anyone help me to find this file?
GreyHead 14 Jun, 2009
Hi mauroed79,

The Captcha checking code is in chronocomments.php around line 100

Bob
mauroed79 14 Jun, 2009
Hy GreyHead,
thanks for replying. Anyway, I don't need the code that checks the captcha when it is enabled, but the file that processes the comment, even when captcha is not enabled. Can you help me?
Thanks
GreyHead 14 Jun, 2009
Hi mauroed79,

After line 100 . . . from around 140

Bob
quirkyjake 29 Jul, 2009
I read FAQ30 and changed the verification PHP. When I checked the url I received the error below and don't know what to do. Any help would be greatly appreciated. QJ

Not Found
The requested URL /components/com_chronocontact/chrono_verification.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
GreyHead 29 Jul, 2009
Hi quirkyjake,

Does the file exist in your installation?

Can you post a link to your site please?

Bob
quirkyjake 29 Jul, 2009

Hi quirkyjake,

Does the file exist in your installation?

Can you post a link to your site please?

Bob


No, I don't have a file chronocontact. Where can I find it?
GreyHead 29 Jul, 2009
Hi quirkyjake,

I wonder - that's a ChronoForms file it's looking for, not a ChronoComments one. It may just be a typo in the code . . .

Please will you download and install ChronoForms (you don't need a license or anything else) and see if the message goes away>

Bob
quirkyjake 30 Jul, 2009
I've downloaded and installed chronoforms and now I get this:

The image “http://www.atlantacuisine.com/components/com_chronocontact/chrono_verification.php” cannot be displayed, because it contains errors.
GreyHead 30 Jul, 2009
HI quirkyjake,

Thats usually a sign of a problem with server security. Please get your ISP to check the server logs, they may need to allow png as a file type in mod_security or something similar (I don't really understand server security).

Bob
quirkyjake 30 Jul, 2009
Hi Bob,

So this will work once I fix the server security issue?


Thanks,
QJ
nml375 30 Jul, 2009
Hi,
The actual content of the image is a php-error message, although the content-type header remains set to image/png. Thus, most browsers report an invalid image. The actual error message is as follows:

<br />
<b>Fatal error</b>: Call to undefined function imagecreatefrompng() in <b>/home/atlantac/public_html/components/com_chronocontact/chrono_verification.php</b> on line <b>95</b><br />


As such, it would seem your server either lacks the GD library, or has a broken one.

/Fredrik
quirkyjake 31 Jul, 2009
Okay, I spoke with my provider and they enabled GD on easyApache. Now when I do the FAQ30 check I see an image so all looks good there. However, the captcha still doesn't appear.

Any ideas?

Thanks for all your help, btw.


QJ
quirkyjake 31 Jul, 2009
Did a little tweaking with the settings and finally got it to work.

Thanks, Bob!
GreyHead 31 Jul, 2009
Hi quirkyjake,

You are welcome - though actually Fredrik caught this one better than I did.

Bob
quirkyjake 31 Jul, 2009
Then I offer a big thanks to Fredrik as well.

Great extension.......keep up the good work.


QJ
caseyd 06 Aug, 2009
quirkyjake - I'm having the same problem..... gd is enabled, but no image.

would it be too much to ask what "tweaking" to the settings was done?

perhaps this could be my fix as well.

thanks in advance,
CaseyD
quirkyjake 06 Aug, 2009
I believe the tweaking that did it was actually in parameters with email notification setting. I had to switch it from disabled to "send to guest only." Not sure why, but it did the trick.

Sorry for not posting it earlier.

I hope this helps.


QJ
caseyd 07 Aug, 2009
It was actually a permissions issue on the files and directories under my account.
setting all directories to 755 corrected the issue.
cronostar 26 Oct, 2009
Hey guys

i have the same problem im a newbee to programming and i did the whole install and forms tutorial

but i cant get the image to work it gives me the following error at: http://www.neo-tech.co.za/rsq/components/com_chronocontact/chrono_verification.php" 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@neo-tech.co.za[/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.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at <!-- w --><a class="postlink" href="http://www.neo-tech.co.za">www.neo-tech.co.za</a><!-- w --> Port 80

can some 1 help me please

kindest regards

Mark
GreyHead 04 Nov, 2009
Hi joe1,

Possibly but problems are more often server related.

Bob
englishdoggy 10 Jun, 2010
Hi Grey Head

I actually had the same problem and sorted it out with my isp after reading this.

Thanx
This topic is locked and no more replies can be posted.