I just ran into an issue not being able to connect to the solr server. No error message appears, so it was hard to track down. Problem, the leading @:
// attempt a HEAD request to the solr ping page $ping = @file_get_contents($this->_pingUrl, FALSE, $context);
Without the @ I see the error message ;)
Warning: file_get_contents(): URL file-access is disabled in the server configuration in SearchApiSolrConnection->ping() (line 77 of .../modules/search_api/contrib/search_api_solr/solr_connection.inc).
So is it necessary to use the streams there? Perhaps the raw functions ala _sendRawPost() could be used instead?