Download & Extend

unrecoverable error has occurred ... Call to undefined function taxonomy_get_vocabularies()

Project:Drupal core
Version:6.13
Component:update system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

I'm currently preparing the migration of a D5 site to D6; as the manual suggests, I updated D5 itself and it's contributed modules to the latest versions (by using drush pm refresh/update), ran update.php successfully and disabled all contributed modules. With only the required core modules active, I started the upgrade process, which failed with the following error:

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page
An error occurred. http://staging.mysite.org/update.php?id=2&op=do <br /> <b>Fatal error</b>: Call to undefined function taxonomy_get_vocabularies() in <b>/var/www/staging/modules/forum/forum.install</b> on line <b>112</b><br />

Whatever this means: The forum.module from Drupal core was disabled and uninstalled on this site months ago.

Rerunning update.php again resulted in the same error.

Any suggestions??

Thanks & greetings, -asb

Comments

#1

Status:active» closed (fixed)

This issue seems to be resolved by

* activating forum.module (after the failed upgrade):
* running update.php;
* disabling forum.module;
* uninstalling forum.module
* running update.php once more.

I don't know if this procedure can be recommended; at least the error is now gone.

Greetings, -asb

#2

Version:6.9» 6.12
Status:closed (fixed)» needs work

asb did you have Advanced Forums running? (I did)

I will probably be going through this process again, but the issue appears to be the fact that when we disable all modules we disable taxonomy from the forum module. When upgrading since this module is deactivated, the forum upgrade process fails. The install script should enable taxonomy before it attempt to upgrade forum.

If I run through another migration on this site I will leave taxonomy on and see if it fixes this issue!

#3

Hi,

no, I'm neither running the "Advanced Forums" module, nor have I ever had it installed at the sitein question. However, my D5->D6 upgrades are still postponed (Amazontools, Panels), so I might run into this or similar errors at a later time again.

Greetings, -asb

#4

Status:needs work» active

Solution: The upgrade script needs to enable taxonomy before forums. For some reason, taxonomy is not being enabled before forums is installed.

I wish I could offer a patch but I am not the type of programmers to be able to go into pre-written code and make appropriate changes. If needed I will trade my ability to document or provide support for someone who can write this patch. Changed to Active (hopefully someone will take notice)

#5

Version:6.12» 6.13

Hi,

another site, another sandbox upgrade to Drupal 6.16, same error again:

An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page

An error occurred. http://localhost/update.php?id=1&op=do <br /> <b>Fatal error</b>: Call to undefined function taxonomy_get_vocabularies() in <b>/var/www/drupal/modules/forum/forum.install</b> on line <b>112</b><br />

Next run of update.php is followed by:

user warning: Table 'actions_aid' already exists query: CREATE TABLE actions_aid ( `aid` INT unsigned NOT NULL auto_increment, PRIMARY KEY (aid) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in /var/www/drupal/includes/database.inc on line 517.
user warning: Duplicate entry '6534-0' for key 1 query: ALTER TABLE locales_target ADD PRIMARY KEY (language, lid, plural) in /var/www/drupal/includes/database.mysql-common.inc on line 374.

Then update.php quits agin with the "unrecoverable error" from before.

Manually enabling taxonomy.module allows update.php to finish.

Greetings, -asb

#6

I appreciate this forum.

We ran into the same error regarding the taxonomy module. (We did not get the full error you describe immediately above but we did get the initial error that started this forum thread.) We actually took a slightly different tack, we ENABLED the taxonomy module and DISABLED the forum module and that seemed to allow the proper sequencing and update went fine with respect to this issue. We then ENABLED forum module and ran update again selecting the forum module for updating. Update with respect to this issue went fine again.

Hope this helps.

geoff gevalt

#7

Thank you for this forum.

I too got the unrecoverable error in updating forum module (#6000) when upgrading from 5.x to 6.x. I had to look in my php error logs to find that it was an error "Call to undefined function taxonomy_get_vocabularies(). As you suggested, I enabled taxonomy module, ran update again, and no errors. Thanks!

#8

Exactly the same problem, #6 worked perfectly! Thank you . . .

#9

I had the same problem as well, #6 or #7 is what i did as well and it worked perfectly. Thank you for documenting this!

nobody click here