Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found
1,122 views
Skip to first unread message
Jaam
unread,
Mar 15, 2015, 1:58:57 PM3/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to reca...@googlegroups.com
I've downloaded v2 and I'm getting this error when trying to validate the response. I'm running this locally but have also received the same error on the real server. My code is pretty much copy/paste from google
if (!empty($human)) { require_once('Captcha/ReCaptcha.php'); $recaptcha = new \ReCaptcha\ReCaptcha($secret); $resp = $recaptcha->verify($human, $remoteIp); if ($resp->isSuccess()) { // verified! } else {} else{}
Brian Rojas
unread,
Mar 16, 2015, 11:08:45 AM3/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to reca...@googlegroups.com
Hi Jam, where did you get v2?
can you link me to download it, I want to use this version and maybe I can help you with your issues.
thanks
brian
Anu Udyaver
unread,
Mar 30, 2015, 4:10:51 PM3/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to reca...@googlegroups.com
Jaam,
Are you including other required class files which came along with the ReCaptcha.php file? I see in your code, you are including only one file. There are bunch of other classes you have to include with require_once such as ReCaptcha\RequestMethod\Post.php ReCaptcha\Response.php ReCaptcha\RequestParameter.php, etc.