Having installed Pathauto on a site with Taxonomy enabled (but not utilized i.e. no vocabularies set up) and then turning Taxonomy off Pathauto continues to look for a node's parent's on submission resulting in a white page of death.

[Fri Sep 7 09:05:55 2007] [error] PHP Fatal error: Call to undefined function taxonomy_get_parents_all() in [...]/sites/all/modules/pathauto/pathauto.module on line 270

I tried turning taxonomy on and blanking all of the "Category" entries (the default was there to begin with) and then turning taxonomy off again but got the same result.

Comments

greggles’s picture

Status: Active » Fixed

Thanks for finding and reporting this, Josh B.

The solution is quite simple - just wrapping those in a module_exists('taxonomy') if block.

I also decided to provide some defaults if they don't exist. I also wrapped the token_list help information in that same if block so that people won't know about them unless they have a chance of working...

Anonymous’s picture

Status: Fixed » Closed (fixed)