Forums

CAPTCHA image not displaing

csommer 21 Nov, 2008
Hi,
I have set up a form which is running well, except that if I switch on the CAPTCHA the image does not display. I have put the appropriate tag into the HTML, and the box for typing in the code is appearing on the form, and if ones submits it does request that the correct code be entered.

So it seems the image is not rendering on my system. The "with" or "without" fonts option does not make a difference, nor is a sample image appearing in the backend.

My GD info is as follows:
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled

I am running ChronoForms 2.3.9 on Joomla 1.0.15.

Can anyone suggest where I could begin to look for the problem? Many thanks.
Max_admin 21 Nov, 2008
Hi, try to chmod chrono_verification.php file to 0755 or 777 and retest ? searching the forums may show more unpopular reasons too!

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
csommer 22 Nov, 2008
Hi Max,

Unfortunately changing the chmod did not do the trick.

I did notice the following message in my cPanel error log:

SoftException in Application.cpp:252: File "/home/userName/public_html/testFolder/components/com_chronocontact/chrono_verification.php" is writeable by group, referer: http://mysite.com/testFolder/index.php?option=com_chronocontact&task=send&chronoformname=test_form

Also, the files and folders in question are owned by my cPanel login name, as opposed to being ownerless. I know that makes a difference sometimes. Not sure if that is the case here

I'm also running this in a subfolder, not sure if that makes a difference. I did have a quick look through the code but did not find any hard-coded paths at first glance.
Max_admin 22 Nov, 2008
Hi csommer, try to 755 this file and folders over it too, I know this had fixed it for some users before, as long as you have GD support, may be you can copy the chrono_verififcation.php file to the root of your site and open it in browser to see if it works there ?

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
csommer 22 Nov, 2008
Hi again Max,

All folders and files in question are chmod 755.

I did try accessing a copy of the chrono_verification.php in the site root and I get the following error message:

The image "http://mysite.com/chrono_verification.php" cannot be displayed, because it contains errors.



The message itself appears to be an image.

I definitely have GD support enabled because I have another CAPTCHA and a gallleries running that use it.
Max_admin 22 Nov, 2008
ok, try to change the header img/png to text/html in this file and see the errors you get ?

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
csommer 24 Nov, 2008
OK, at first I got a whole bunch of errors, the first of which was about not being able to find the background.png file. Once I copied that in, the captcha worked! I tried the same thing in my test subfolder and it also works!

But if I try accessing the file in its original location, ie : http://mysite.com/testFolder/components/com_chronocontact/chrono_verification.php it get a 500 internal server error: "The request could not be understood by the server due to malformed syntax."
Max_admin 24 Nov, 2008
Hi, as long as its working now then this is fine, it should have no problems by default, test some forms to make sure everything is okay!

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
csommer 24 Nov, 2008
I tried creating a new form but still did not get any results.

I then thought of trying one last thing. I edited the chronocontact.php file to look for the chrono_verification.php file in the Joomla root as apposed to in the component subfolder, ie I changed this line:

.'/components/com_chronocontact/chrono_verification.php?imtype='.$paramsvalues->imtype.'">';


to:

.'/chrono_verification.php?imtype='.$paramsvalues->imtype.'">';


And this worked! The captcha is displaying in the form and the whole thing works. It seems as though there may be some problem with running this on a Joomla site that is installed in a subfolder.

The last question is simply, are there any security concerns with having the chrono_verification.php and the background.gif file in the Joomla root?
Max_admin 24 Nov, 2008
Hi csommer,

no security issues but this tells that this is some permissions issue, you can ask your host admin for advice or errors happen when you try to access the one in the component folder ?

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.