Fatal error: require_once() [function.require]: Failed opening required 'SolrPhpClient/Apache/Solr/Service.php' (include_path='.;C:\php5\pear') in C:\wamp\www\apache\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 2

Comments

dipen chaudhary’s picture

Category: task » support
Priority: Critical » Minor

Have you read the installation README or the handbook page linked on the project page?

You will need to check out revision 6 of Solr PHP client in your apachesolr module directory, please refer to installation instruction.

damienmckenna’s picture

It might be cleaner if a file_exists() check was executed first, and then have it fail more cleanly if not found?

pwolanin’s picture

The module does nto work at all without that library, so if anything the place to put a file_exists() would be in hook_requirements() so that the module cannot be enabled without it

robertdouglass’s picture

Title: Fatal error: require_once() » Enhance requirements checking to make it impossible to install without required libraries.
Version: 6.x-1.0-beta9 » 6.x-2.x-dev
Assigned: deepthistars » Unassigned
Category: support » feature
Priority: Minor » Normal
jpmckinney’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

brycesenz’s picture

I just updated to the latest version of -dev (2.x branch) from a slightly older version, and all of a sudden I'm seeing this issue. I updated the module using drush, and have run all updates and flushed the caches, yet this error still appears.

I'm reverting back to my older version until I figure out why this happened.

webdevbyjoss’s picture

Version: 6.x-2.x-dev » 6.x-1.5
Status: Closed (fixed) » Needs work

Hi, guys

I've updated to the latest version of this module and it looks like this bug still exists.
My Solr Search is down and fails with
Fatal error: require_once() [function.require]: Failed opening required 'SolrPhpClient/Apache/Solr/Service.php'

Possibly we should include the workaround instruction for this for people who plan to upgrade their "Apache Solr Search Integration" module.

Because I had 6.x-1.2 version and upgraded to 6.x-1.5 which resulted into "Fatal error: ..."

nick_vh’s picture

@webdevbyjoss : Have you installed the required library for 6.x-1.5?

pwolanin’s picture

Status: Needs work » Closed (won't fix)

No patch, closing issue.