While i tried to add recaptcha plugin from http://bakery.cakephp.org/articles/tbsmcd/2011/02/05/recaptcha_plugin_6 , following errors are shown.
Strict (2048): Declaration of RecaptchaComponent::startup() should be
compatible with Component::startup(Controller $controller)
[APP/Plugin/recaptcha_plugin/Controller/Component/RecaptchaComponent.php,
line 17]Strict (2048): Declaration of ValidationBehavior::beforeValidate()
should be compatible with ModelBehavior::beforeValidate(Model $model)
[APP/Plugin/recaptcha_plugin/Model/Behavior/ValidationBehavior.php,
line 2]**
Thanks in advance.
Could it be you are trying to use this CakePHP 1.3 plugin with CakePHP 2.x? The reason I ask is the name of the file
recaptcha_plugindoes not follow CakePHP convention. Follow the readme on the Git Repo.It looks like you need to rename the plugin folder in the plugin directory: