[SOLVED] "Fatal error: require_once(): Failed opening required 'SolrPhpClient/Apache/Solr/Service.php'"
The Apache Solr module integrates Drupal with the Apache Solr search platform. Solr search can be used as a replacement for core content search and boasts both extra features and better performance. The apachesolr module requires the external PHP library,"SolrPhpClient". If this is missing in your apachesolr module directory, it will show the following fatal error after installing or updating this module.
"Fatal error: require_once(): Failed opening required 'SolrPhpClient/Apache/Solr/Service.php'"
In order to solve this error you can do either of the following two.
- Download the PHP library SolrPhpClient from http://solr-php-client.googlecode.com/files/SolrPhpClient.r22.2009-11-0…. Extract it and place it in the apachesolr module folder. Make sure that the folder name should be "SolrPhpClient" module.
- If you use drush simply run the following command from the apachesolr module directory.
- drush make --no-core -y --contrib-destination=. apachesolr.make.example
The above command will download the library and will place it in the apachesolr module directory.
By doing this you can solve the above error after installing or updating the apachesolr module.