? node_fix.patch
Index: pathauto_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_node.inc,v
retrieving revision 1.17
diff -u -F^ -r1.17 pathauto_node.inc
--- pathauto_node.inc	22 Jan 2006 18:05:22 -0000	1.17
+++ pathauto_node.inc	19 Jun 2006 19:28:04 -0000
@@ -203,11 +203,12 @@ function node_pathauto_bulkupdate() {
   $query = 'SELECT nid,type,title,uid,created,src,dst FROM {node} '.
     "LEFT JOIN {url_alias} ON CONCAT('node/', nid) = src";
   $result = db_query($query);
-  $node = db_fetch_object($result);
+  $node_ref = db_fetch_object($result);
 
   $count = 0;
   $placeholders = array();
-  while ($node) {
+  while ($node_ref) {
+  	$node = node_load($node_ref->nid);
     if (module_exist('taxonomy')) {
       // Must populate the terms for the node here for the category
       // placeholders to work
@@ -219,7 +220,7 @@     if ($alias = pathauto_create_alias('
                   $src, $node->type)) {
       $count++;
     }
-    $node = db_fetch_object($result);
+    $node_ref = db_fetch_object($result);
   }
   
   drupal_set_message(format_plural($count,
