CodeIgniter Forums
Persistent Error - 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: Persistent Error (/showthread.php?tid=48991)



Persistent Error - El Forum - 02-04-2012

[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.



Persistent Error - El Forum - 02-05-2012

[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?