I’m sure I did everything correctly but I get the following message when I’m trying to access the Solr settings from site configurations: “Fatal error: require_once() [function.require]: Failed opening required 'C:\xampp\htdocs\mysite\sites\default\modules\apachesolr\SolrPhpClient\Apache\Solrapachesolr/SolrPhpClient/Apache/Solr/Document.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\mysite\sites\default\modules\apachesolr\SolrPhpClient\Apache\Solr\Service.php on line 41.”
Is this because I put the wrong path in the Service.php file? This is what I currently have:
require_once(dirname(__FILE__) . 'apachesolr/SolrPhpClient/Apache/Solr/Document.php');
require_once(dirname(__FILE__) . 'apachesolr/SolrPhpClient/Apache/Solr/Response.php');
If anyone can help, I’d appreciate it.
| Comment | File | Size | Author |
|---|---|---|---|
| properly configured.jpg | 164.73 KB | azwildcat |
Comments
Comment #1
anarchivist commentedYes, it appears to be an issue of incorrect paths. The documentation for apachesolr says nothing about modifying any of the files in the client library - revert your changes back accordingly.
Comment #2
jpmckinney commentedIf you have drush installed, you can run drush solr-phpclient and it will install the SolrPhpClient in the correct directory.