Recaptcha Error

150 views
Skip to first unread message

GlenEst

unread,
Mar 22, 2012, 8:00:52 PM3/22/12
to reCAPTCHA
Can anyone tell me what this following error message means .....

Warning: require_once(recaptchalib.php) [function.require-once]:
failed to open stream: No such file or directory in /home/cityofad/
public_html/glentruimestate.co.uk/contact.php on line 121

Fatal error: require_once() [function.require]: Failed opening
required 'recaptchalib.php' (include_path='.:/usr/lib/php:/usr/local/
lib/php') in /home/cityofad/public_html/glentruimestate.co.uk/
contact.php on line 121


Website is at : http://www.glentruimestate.co.uk/contact.php

Cheers in Advance
GlenEst

PJH

unread,
Mar 22, 2012, 8:36:08 PM3/22/12
to reca...@googlegroups.com
On line 121 of contact.php you're trying to include recaptchalib.php, and the server can't find it in any of the usual places.

1) What's on (or near) line 121 (it'll be an include statement)?
2) What is the full path of recaptchalib.php? Is it in the same directory as contact.php? (/home/cityofad/
public_html/glentruimestate.co.uk/)

GlenEst

--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.




--
PJH


Message has been deleted

GlenEst

unread,
Mar 23, 2012, 4:25:00 AM3/23/12
to reCAPTCHA
Hi

Forgot to include recaptchalib.php - silly me!

It works, but its slighty mis-aligned. How can I get it to sit under
the actual message box?

GlenEst



On Mar 23, 12:36 am, PJH <pauljherr...@gmail.com> wrote:
> On line 121 of contact.php you're trying to include recaptchalib.php, and
> the server can't find it in any of the usual places.
>
> 1) What's on (or near) line 121 (it'll be an include statement)?
> 2) What is the full path of recaptchalib.php? Is it in the same directory
> as contact.php? (/home/cityofad/
> public_html/glentruimestate.co.uk/)
>

PJH

unread,
Mar 23, 2012, 4:41:43 AM3/23/12
to reca...@googlegroups.com


On Fri, Mar 23, 2012 at 8:25 AM, GlenEst <da...@glentruimestate.co.uk> wrote:
It works, but its slighty mis-aligned.  How can I get it to sit under
the actual message box?

Give it a (blank) lable?

<centre></centre> around your call to echo recaptcha_get_html()?
--
PJH


Message has been deleted

GlenEst

unread,
Mar 26, 2012, 5:53:00 AM3/26/12
to reCAPTCHA
I think I manged to do this

http://glentruimestate.co.uk/contact.php

But it seems I can send the form without completed the Captcha
Reference?
I also tried it another time with incorrect Captcha words and it sent
fine - Why didnt it show incorrect captcha?

any ideas

Dave

On Mar 23, 9:41 am, PJH <pauljherr...@gmail.com> wrote:

PJH

unread,
Mar 26, 2012, 6:02:15 AM3/26/12
to reca...@googlegroups.com
> <form id="contact" action="">

Where is your verification code? From the action there (it shouldn't be blank by the way), it should be somewhere in contact.php.



--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.




--
PJH


Message has been deleted

GlenEst

unread,
Mar 27, 2012, 4:48:58 AM3/27/12
to reCAPTCHA
It was blank on the inital contactus.html page?

Not sure if that makes a difference?

Bengalur

unread,
Mar 27, 2012, 2:38:28 PM3/27/12
to reca...@googlegroups.com
Dont you need to verify on the server side.  You contact.php should include this
 
 <?php 
  require_once
('recaptchalib.php'); 
  $privatekey
= "your_private_key"; 
  $resp
= recaptcha_check_answer ($privatekey, 
                                $_SERVER
["REMOTE_ADDR"], 
                                $_POST
["recaptcha_challenge_field"], 
                                $_POST
["recaptcha_response_field"]); 
 
 
if (!$resp->is_valid) { 
   
// What happens when the CAPTCHA was entered incorrectly 
   
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . 
         
"(reCAPTCHA said: " . $resp->error . ")"); 
 
} else { 
   
// Your code here to handle a successful verification 
 
} 
 
?>

GlenEst

unread,
Mar 29, 2012, 3:53:02 AM3/29/12
to reCAPTCHA
the file process.php does include the following


<?php
require_once('recaptchalib.php');
$privatekey = "myprivatekey";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it
again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
}
?>

But its still not working?

Any ideas
GE
> > contact.php <http://glentruimestate.co.uk/contact.php> on line 121

PJH

unread,
Mar 29, 2012, 5:48:08 AM3/29/12
to reca...@googlegroups.com


On Thu, Mar 29, 2012 at 8:53 AM, GlenEst <da...@glentruimestate.co.uk> wrote:
the file process.php does include the following

But, from the code you submitted earlier, process.php isn't actually being used.

--
PJH


Reply all
Reply to author
Forward
0 new messages