Add stubbed-out search function; fix error handling in site code