Closed (fixed)
Project:
Pathauto
Version:
5.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2007 at 16:25 UTC
Updated:
22 Sep 2007 at 17:21 UTC
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
Comment #1
gregglesThanks 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...
Comment #2
(not verified) commented