D5.12
Taxonomy module not enabled.
Userpoints 5.x-3.7
Userpoints_contrib 5.x-3.0: invite
Userpoints_contrib 5.x-3.0: role exempt

Userpoints working without problems before upgrade from '5.x-2.16' to '5.x-3.7'. Update of database successful without any errors. Error message thrown when clicking 'admin> manage points'.

Fatal error: Call to undefined function taxonomy_save_vocabulary() in C:\xampp\htdocs\drupal\sites\demo.robertmaxim.local\modules\userpoints\userpoints.module on line 1689

Any ideas as to the cause of this error message?

Comments

kbahey’s picture

Status: Active » Needs work

@WiredEscape

If you enable the taxonomy module, this problem will go away.

@jredding

We need to wrap all the calls that depend on taxonomy in :

 if(module_enabled('taxonomy')) {
 ..
 }

And allow the module to operate without taxonomy enabled.

WiredEscape’s picture

Status: Needs work » Active

The simple fix was to enable Taxonomy.

The error ceases, but should there not be a check for whether the Taxonomy module is enabled before calling this function?

WiredEscape’s picture

Fast reply! You beat me to the punch.

jredding’s picture

Version: 5.x-3.7 » 6.x-1.x-dev
Assigned: Unassigned » jredding
Status: Active » Fixed

fixed in both 5 and 6

Status: Fixed » Closed (fixed)

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