So the file that was breaking the search engine was located at
includes/templates/your_template/templates/tpl_advanced_search_default.php

The one I kept being told was the problem was
includes/modules/pages/advanced_search_result/header_php.php