No, that's not quite what i am saying.
I am saying that regardless of the error about the template being locked, the search should still work.
It is a common issue that happens in Dreamweaver when working with templates.
You asked how to get rid of the error, that is where using framework builder to convert the template to a theme comes in.