Hi I just installed this module after noticing the good work its in in drupal.org but now I get this I cant even see user profiles. someone help please...
Fatal error: Call to undefined function apachesolr_get_nodes_to_index() in /{path}/sites/all/modules/apachesolr/apachesolr_search.module on line 94

Comments

pwolanin’s picture

Category: bug » support

This is the only report of this - check that you got all the module files. Did you move the module files after installing?

johnlinux’s picture

no I didnt move anything. I just installed normally. extracted the tar ball, then moved it to the sites/all/modules directory, then enabled it on the modules page. anything else that im supposed to do other than that?

pwolanin’s picture

Status: Active » Closed (fixed)
foredoc’s picture

Any solutions? I got exactly the same problem here.

cjdavis’s picture

Status: Closed (fixed) » Active

Seeing the exact same error here. The really strange part is that it is working fine on a separate site copy running on the same machine so 99% of the site is identical, including the environment. And it continues even after copying the apachesolr code directory from the functioning copy.

I can confirm the apachesolr_get_nodes_to_index() function is present in apachesolr.module.

cjdavis’s picture

Version: 6.x-1.0-rc5 » 6.x-2.x-dev
cjdavis’s picture

Status: Active » Fixed

It turns out that I somehow had the apachesolr_search module enabled, but not the apachesolr module. The dependencies are there, so it looks like something glitched during installation. Disabling / enabling everything fixed it.

Status: Fixed » Closed (fixed)

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

Toktik’s picture

Version: 6.x-2.x-dev » 6.x-1.3
Status: Closed (fixed) » Active

Same problem as described cjdavis.

ApacheSolr enabled but Framework module is not enabled. Maybe caused by missing SolrPhpClient while installation?

mcaden’s picture

confirmed, I had the same problem toktik had. I disabled and re-enabled and it worked fine.

pwolanin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

fonant’s picture

I had this, I think because I switched from the 7.x-1.x-dev version to a 7.x-1.0-beta version. Easily fixed by uninstalling all apachesolr modules, deleting any remaining tables, and re-installing.