I just about have my D7 template ported to Bd. One of my remaining issues is that when I do a search that has results I get the following error:

file_icon_url(): Argument #1 ($file) must be of type File, stdClass given, called in /var/www/html/DIR/core/modules/file/file.theme.inc on line 125

If my search returns no results then I get the following:

Your search yielded no results

  • Check if your spelling is correct.
  • Remove quotes around phrases to search for each word individually. bike shed will often show more results than "bike shed".
  • Consider loosening your query with OR. bike OR shed will often show more results than bike shed.

If anyone can point me in the direction on why this is happening that would be great.

Accepted answer

Solved. There was a function in my template file that made attachments automatically open in another window. Still have to figure out why it was giving Bd such a problem but… I also still don't understand why Boo and Poo worked when searching.

Comments

And randomly it works if I search the word Boo, but nothing else I've tried. 

More weird…I can search Boo and Poo, they work…Too does not :? or any other word I've tried.

Solved. There was a function in my template file that made attachments automatically open in another window. Still have to figure out why it was giving Bd such a problem but… I also still don't understand why Boo and Poo worked when searching.

Congratulations for solving this on your own. Please, keep using the forum to ask questions. Maybe next time, we'll be able to help you before you figure it out on your own.