CodeIgniter Forums
problem running the recaptcha code from the wiki libarary - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: problem running the recaptcha code from the wiki libarary (/showthread.php?tid=22405)



problem running the recaptcha code from the wiki libarary - El Forum - 09-08-2009

[eluser]Oussama M Billah[/eluser]
Hello,

I have problem having the recaptcha validating correctly.

http://codeigniter.com/wiki/ReCAPTCHA/

When I fill the form i get redirected to the system home page regardless of wether the information in the form matches the captcha text.

the code is the same as in the zip file i downloaded from here:

http://codeigniter.com/wiki/e5b188f617d6177372a9d28fafb65c2d/

any idea what can be wrong?


problem running the recaptcha code from the wiki libarary - El Forum - 12-17-2009

[eluser]yannyannyann[/eluser]
I think i have the same problem as you:



I am sure this is a minor problem, but in the doc I haven't found yet
where to configure my reCaptcha to solve my problem:

I have recaptcha displayed in my form.
http://www.spaceagenda.com/pages/submit

But as soon as I click on the text field or on the refresh or play
audio button, i get redirected to the root URL
http://www.spaceagenda.com

How can I proceed so it stays in the submit page ?

thanks in advance Smile


problem running the recaptcha code from the wiki libarary - El Forum - 12-17-2009

[eluser]yannyannyann[/eluser]
I think it's linked to my htacess file or config of codeigniter.

Code:
# Options
Options -Multiviews
Options +FollowSymLinks

#Enable mod rewrite
RewriteEngine On
#the location of the root of your site
#if writing for subdirectories, you would enter /subdirectory
RewriteBase /

#Removes access to CodeIgniter system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^sys.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#This last condition enables access to the images and css
#folders, and the robots.txt file
RewriteCond $1 !^(index\.php|img|robots\.txt|css)

RewriteRule ^(.*)$ index.php?/$1 [L]



Because I have just tried it here and it works : http://www.spaceagenda.com/test/submit.php
(this is a real path and real file)


problem running the recaptcha code from the wiki libarary - El Forum - 12-18-2009

[eluser]yannyannyann[/eluser]
Finally I adandonned and chose another captcha solution.
Had no time to look more into it. Sad