Welcome Guest, Not a member yet? Register   Sign In
Persistent Error
#1

[eluser]Unknown[/eluser]
Hello I just used the Recaptcha library today and it's driving me nuts because of this error:


Fatal error: Call to undefined method Recaptcha::recaptcha_get_html() in C:\xampp\htdocs\xxxxxxxxxxx\application\controllers\user.php on line 94


this is some parts of my method in user controller
Code:
$this->load->library('recaptcha');
$this->load->library('form_validation');
$this->lang->load('recaptcha');

if ($this->form_validation->run() == FALSE):
    $this->load->view('users/register', array($data, $this->recaptcha->recaptcha_get_html()));
   else:

Register.php

Code:
<p>
&lt;?= form_error('recaptcha_response_field') ?&gt;
&lt;?= $recaptcha ?&gt;
</p>

I also copied to my user(view directory ) the included recaptcha. Please help I've been stuck with this one for almost 5 hours I followed the Wiki properly. I also know for sure that my public/private keys are correct.
#2

[eluser]Mark LaDoux[/eluser]
Quote:Fatal error: Call to undefined method Recaptcha::recaptcha_get_html() in C:\xampp\htdocs\xxxxxxxxxxx\application\controllers\user.php on line 94

It's saying that the method recaptcha_get_html() does not exist in the recaptcha library. do you have a link to the source of the recaptcha lib you're using? Did you remember to copy it into your application/libraries folder?




Theme © iAndrew 2016 - Forum software by © MyBB