CakeDC/recaptcha — Issue #13: testing with cakephp 2.0.4
Author: bendo01
Created: 2011-12-04 08:06:09+00:00
State: open

i test it with cakephp 2.0.4 and using php 5.3.8

in my bootsrap
Configure::write('Recaptcha.publicKey', 'myPbKey');
Configure::write('Recaptcha.privateKey', 'myPkKey');

in my user model
class User extends AppModel {
public $actsAs = array('Acl' => array('type' => 'requester'),'Recaptcha.Recaptcha');
}

in my user controller
class UsersController extends AppController {
public $components = array('Recaptcha.Recaptcha');
public $helpers = array('Recaptcha.Recaptcha');
}

when i submit data it show message

Warning (2): explode() expects parameter 2 to be string, object given [APP/Plugin/Recaptcha/Controller/Component/RecaptchaComponent.php, line 132]
Code Context

$response	=	HttpResponse

explode - [internal], line ??
RecaptchaComponent::verify() - APP/Plugin/Recaptcha/Controller/Component/RecaptchaComponent.php, line 132
UsersController::register() - APP/Controller/UsersController.php, line 278
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 473
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 107
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - APP/webroot/index.php, line 97