Guard the solr from PHP errors