I'm getting some odd output on my Search Page

onContentSearch appears above the Page Title.


I'm stumped, any and all help greatly appreciated.

  • I think that function is defined at /plugins/search/content/content.php -> line 32 - have a look to see if anything is unusual there.
    – jonboy
    Sep 12, 2014 at 15:23

2 Answers 2


It seems that onContentSearch is written in echo or print_r , you can search the string in code to detect it in search plugin or component used on your site, can check the article content if any is set on this page from admin panel and also check the index file of your template.


I had the same problem couldn't find solution on other websites, so fixed it myself.

In my case solution was to remove onContentSearch on first line in the file:


Probably the developer put it there by mistake. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.