Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi,
I keep getting this error info on my search page:

Deprecated: Non-static method SearchEx::tag_handler() should not be called statically in /home/kofitalent/public_html/kt-admin/event.php on line 97

Deprecated: Non-static method SearchEx::tag_handler() should not be called statically in /home/kofitalent/public_html/kt-admin/event.php on line 97

Deprecated: Non-static method SearchEx::tag_handler() should not be called statically in /home/kofitalent/public_html/kt-admin/event.php on line 97

What could be the problem. Thank you
Hi,

The code being referred to (i.e. class SearchEx) is not part of Couch's core.
I think most likely you are using it as custom code in your couch/addons/kfunctions.php (or any other kfunctions.php file).

Please try locating that code. I should look like this -
Code: Select all
class SearchEx{
    function tag_handler( $tag_name, $params, $node, &$html ){
        ..

Once you find it, please modify the function declaration to prepend the 'static' keyword to it as follows -
Code: Select all
class SearchEx{
    static function tag_handler( $tag_name, $params, $node, &$html ){
        ..

That should quell the warning.

Hope this helps.
2 posts Page 1 of 1