I have developed a website using CakePHP 2.4 and the server where i have uploaded website are using PHP 5.4. Everything is working correcctly, but as i have used AjaxHelper and JavascriptHelper in the website. It is generating warnings like:
Strict (2048): Declaration of JavascriptHelper::value() should be compatible with Helper::value($options = Array, $field = NULL, $key = 'value') [APP/View/Helper/JavascriptHelper.php, line 23]
Strict (2048): Declaration of JavascriptHelper::afterRender() should be compatible with Helper::afterRender($viewFile) [APP/View/Helper/JavascriptHelper.php, line 23]
Strict (2048): Declaration of AjaxHelper::afterRender() should be compatible with Helper::afterRender($viewFile) [APP/View/Helper/AjaxHelper.php, line 1398]
I am not clear as why is this happening? Is there any problem regarding versions?? Please help me.
http://api.cakephp.org/2.5/source-class-JsHelper.html#23-436
Copy the jshelpercode and paste it into folder view/helper/JsHelper.php
as other already said, the message contains the proposal to change
afterRender
into
afterRender($viewFile)
within in the file mentioned in the error message. Not that hard to understand :)
l8erz
-d1g