Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to do a bulk URL update
Fatal error: Call to undefined function pathauto_get_placeholders() in .../sites/all/modules/pathauto/pathauto.module on line 324
Comment | File | Size | Author |
---|---|---|---|
#2 | 428332_undefined_func.patch | 649 bytes | greggles |
Comments
Comment #1
gbrussel CreditAttribution: gbrussel commentedConfirmed.
Drupal 6.10
Pathauto 6.x-2.x-dev
Latest dev of Token module
Line 73 of pathauto.module calls:
module_load_include('inc', 'pathauto');
to include the pathauto.inc file, where the functionpathauto_get_placeholders()
is defined.Line 321 is the function
pathauto_node_operations_update()
, which doesn't appear to call_pathauto_include();
, whereaspathauto_taxonomy($op, $type, $object = NULL)
on line 335 does call it.Comment #2
gregglesThanks for reporting this issue and for the research, gbrussel.
Does the attached patch do what you imagined?
Comment #3
gbrussel CreditAttribution: gbrussel commentedPatch works as intended. Aliases do update properly. Thanks greggles!
Comment #4
introfini CreditAttribution: introfini commentedIt also fixes the bug when called trough admin>content node operations (hook_node_operations).
introfini
Comment #5
gregglesThanks introfini - fixed in all three branches:
http://drupal.org/cvs?commit=198440
http://drupal.org/cvs?commit=198442
http://drupal.org/cvs?commit=198444