TypeError thrown

preg_match(): Argument #2 ($subject) must be of type string, JAS_Gecko_Sidebar given