Page 2 of 2

Re: Search "resultpage" suddenly stopped working

Posted: Tue Sep 08, 2009 6:25 am
by tinhat
For the record...

I've just waisted my afternoon on a similar problem. The search function was misbehaving all of a sudden - not displaying to the correct resultpage, and all the html header missing on the results page (including css).

Turns out it was some smarty logic I had put into a global content block which was called into my page template. The smarty code was expecting to assign {content} to a variable then do some string manipulation. Of course, the search result page has no content in the {content} block. I put some conditional logic into my smarty code to tell it to skip over the logic for the search-results page and it's working again. Phew.

Hope that helps someone in the future.