Hey,

looks like i cant use apachesolr in installprofiles

Error message:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'webusr_drupal.taxonomy_vocabulary' doesn't exist
this error only appears while installing when setting the dependencie for apachesolr in installprofiles.

does apachesolr need's taxonomy_vocabulary table for installation?

Comments

pwolanin’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not aware of it being required. Please supply more details or steps to reproduce.

n20’s picture

to reproduce: D7.12 latest release (stable, not dev). before a fresh install just put the apachesolr module in place and add to /profiles/standard/standard.info:

dependencies[] = apachesolr

run installation with standard profile.
you will get an error:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'webusr_db1.taxonomy_vocabulary' doesn't exist

nick_vh’s picture

Responsible function :

apachesolr_vocab_name(), and it is only being called during term indexing. So this seems to be a very odd error

prdatur2-1’s picture

Have the same issue here.
We have a profile which needs the apachesolr dependency and got the same error as above descriped.
It occures after setting the apachesolr module as depends[] within a profile .info file.

pyrello’s picture

I am having the same issue as well.

I attempted to fix this issue by applying the patches from #1418834: Beta15+ problems with i18n and entity_translation and #1410256: apachesolr_hook_info() calls entity_get_info() which can throw an error when installing using a profile.. The first did not seem to make any difference. The second made the above error go away, but it was replaced by a similar error complaining about Table 'examplecom.rdf_mapping' doesn't exist

Removing the dependencies for the apachesolr and apachesolr_search modules from my .info file allowed the installation to finish without issue.

nick_vh’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)