If I include forum.module in a install profile, I get:
Fatal error: Call to undefined function taxonomy_save_vocabulary() in .\modules\forum\forum.install on line 20
doing a fresh install.

CommentFileSizeAuthor
#2 forum_install_load_taxonomy.patch1.43 KBasimmonds
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cburschka’s picture

Does this occur if you also include the Taxonomy module in the profile, and place it before Forum in the array? Making installation profiles.

The profile install system could use the same dependency checking that manually enabled modules get. Perhaps it could begin installing modules in the order of dependency rather than in the one specified in the profile... on the other hand, this might be unnecessary overhead.

asimmonds’s picture

Status: Active » Needs review
FileSize
1.43 KB

Taxonomy was already included in the profile, and it doesn't matter where it is located in the array, before or after forum, the error is still received.
One of the ways around this that I can think of, is wrap the taxonomy code in forum_install() in a drupal_load('module', 'taxonomy') call. At this point of the install, the database schema is loaded and the tables have been created so we shouldn't get any table missing errors.
Attached patch uses this method (could also possibly generate a message or log a error if taxonomy module can not be loaded at this point)

asimmonds’s picture

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

This doesn't happen any more, as the vocabulary creation was moved to forum_enable() when http://drupal.org/node/172643 was committed.