I have an install profile that has taxonomy and uuid as dependencies. When installing, uuid is enabled first, then taxonomy. The installation aborts with

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_db.taxonomy_vocabulary' doesn't exist

This is caused by uuid_schema_alter(), which eventually calls taxonomy_entity_info() because of module_invoke_all('entity_info'). However, taxonomy_entity_info() assumes that the tables are already existing, which is not the case, since we are installing the module.

I did not try, but I guess you get the same error if you manually install uuid before taxonomy.

Comments

BenVercammen’s picture

I'm also having this issue, and can confirm that manually enabling Taxonomy afterwards does trigger the same exception.

I have 2 install profiles (multi-site setup) that both require Taxonomy and UUID. 1 passes fine while the other does not. In both cases I've put the Taxonomy dependency on top (of the install profile), but somehow it seems that the dependencies get shifted and the other install file puts UUID first...

Currently I've added the Taxonomy dependency to the uuid.info file, effectively forcing the Taxonomy module to be installed first and successfully bypassing the error. However a better solution to the problem would be more than welcome!

bdziewierz’s picture

Sub.

matason’s picture

As the profile is installed after everything else, (see install.core.inc::install_profile_modules()), I found one solution to this problem was to enable the module in the profile hook_install().

jeffschuler’s picture

Yikes. I ran into this, too. Maybe it's taxonomy_entity_info()'s responsibility to ensure it's been installed before calling taxonomy_vocabulary_get_names()?

zhangtaihao’s picture

There is a collection of issues about this, I think. The issue #1290986: avoid entity_load() during entity info cache rebuilds references a range of modules.

Also, since that, I've been able to make some headway in #1268602: Crash after enabling UUID. Might be helpful.

dixon_’s picture

Status: Active » Fixed

This should now be fixed in 7.x-1.x-dev and the alpha3 release that I'm rolling right now. Read the upcoming release announcement for more info.

dixon_’s picture

Version: 7.x-1.0-alpha2 » 7.x-1.x-dev

Status: Fixed » Closed (fixed)

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