is_search called incorreclty

Hey Mike and welcome to the WordPress Stack Exchange!

First, it’s good form to always include the code you use (or a link to where you found it) if you mention it in your post.

This error comes up when you use it prior to the search being run. The WordPress Codex doesn’t have a ton of detail, but the basic gist is this: the function is very light weight and only returns a boolean. The reason it must be after the query is because it will always return false as it is checking wp_query() which doesn’t exist until a query is run.

Unless your installation is aged and was recently updated, this error has probably been there for a while.

If the site is functioning the way you want, you can find the offending code and remove it since it’s not in the right place anyways.