The error is happy ning because DW is using the virtual function for attaching include files on the results page instead of using the require_once function.
In your site definition, there is a setting for "Create Links Relative To", Normally DW Uses Virtual for include files when this is set to Site. it should be set to document instead so DW Will use the require_once function.