Forums

captcha image not working

webrp 01 Jun, 2009
Hi,

I cannot make the captcha image work on my form.

I have searched in forum but didnt find solution. I really think I am making everything right and that must be some problem between chronoforms and my server. The form is working and I have the error message saying wrong code entered when submitting.

-my server has GD (bundled (2.0.34 compatible) and PHP Version 5.2.8
-I have changed file permissions for "/com_chronocontact/chrono_verification.php" to be 755
-both IE and firefox tested
-when I right click the error icon (where image should be) I have this address: "http://xxxxxxxxxxx/components/com_chronocontact/chrono_verification.php?imtype=1" and also "chrono_verification.php?imtype=1"

I also use chronocomments and I have exact same problem with the captcha image. I suspect this should be some file permissions problem because I have migrated a website from another server to this one, and this is the only one where the image code its ok and working.

Could you give me some tips about how to workaround on this issue?
thank you
Max_admin 01 Jun, 2009
Hi,

Try to access this url and see what you get:
http://xxxxxxxxxxx/components/com_chronocontact/chrono_verification.php?imtype=1

if it didn't work then please copy the chrono_verification file to your Joomla root and try again:
http://xxxxxxxxxxx/chrono_verification.php?imtype=1

if it didn't work then play with the file permissions in the root and see if it works fine!

Let us know!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webrp 01 Jun, 2009
Hi,

I did access my domain like that:
http://xxxxxxxxxxxxxxx/components/com_chronocontact/chrono_verification.php?imtype=1
But I am getting this error:
Internal Server Error
Directory "/home/xxxxxx/public_html/xxxxxxxxxxxx/components" is writeable by group
suPHP 0.6.3


Then I copy that same file to my root folder, and when accessing http://xxxxxxxxxxxxx/chrono_verification.php I have some errors like this:
Warning: require_once(/home/xxxxx/includes/defines.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxx/public_html/xxxxxxxxxxx/chrono_verification.php on line 10
Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxxx/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/xxxxx/chrono_verification.php on line 10

I played with file permissions but no success. I also think theres something wrong here with this error message, because path "/home/xxxxx/includes/defines.php does not exists.

Hum... more tips?
webrp 01 Jun, 2009

I also think theres something wrong here with this error message, because path "/home/xxxxx/includes/defines.php does not exists.


About thhis issue, and remembering that I have one website where the cpatcha image works, I guess that the problem could be ralated to sub domains. I mean I have a shared server where all my domains are setted up under my primary domain. The website that works is the primary domain and all domains under it dont show the captcha image. Could this be the problem?
nml375 01 Jun, 2009
Reading that "Directory ..... is writable by group" would suggest this is a permission issue. Most likely, your admin runs suPhp and have tied down the security. Try removing all permissions for group and others (set mode 700) and see if this helps..

/Fredrik
webrp 03 Jun, 2009
Hi,

My folder root/components has 0777 permissions. And all sub folders on it have 0755.
I removed permissions of /components folder, and they became automaticaly for 700.

I cannot see images yet, but when I attempt to access "http://xxx/components/com_chronocontact/chrono_verification.php?imtype=1" I have now a different error message:
You don't have permission to access /components/com_chronocontact/chrono_verification.php on this server


I then made the same permissions operation for /components/com_chronocontact which become from 755 to 700 but still the same error.

I have aldo repeated everything but make permissions 777, no difference
Anymore tips?
thank you
nml375 03 Jun, 2009
'k, then we need to slightly increase permissions back to 0755 to all directories, and 0644 for all files.

Most likely, one of the folders in the path leading up to the chrono_verification.php file had 0777 permissions, causing suPhp or another security extension to bark.

/Fredrik
webrp 03 Jun, 2009
I (you) have made it, and its now working.

I am a little bit confused and still dont know exactly what happened, but I guess you were right and it was a folder permissions issue.

thank you very much!
dondon1205 30 Mar, 2010
hello guys

I got the same problem...I'm new to this website thing...Where can I change that permission..?

Thank you,

Dondon
jamesbooher 09 Nov, 2010
Hi!
Same problem here.
webrp I followed your steps but still the image doesn't apear.
Someone?
Max_admin 14 Nov, 2010
@james,

Do you get the same error message ? if so then please the files/folders permissions as per Fredrik's post, you may also ask your host admin for some assistance or try the "ReCaptcha" plugin

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.