This can happen when you update a node with no alias, and "Do Nothing" is selected under "Update Action" in general settings.
The help text under "Update Action" says, "What should pathauto do when updating an existing content item which already has an alias?", suggests that existing nodes with no aliases should be treated as new nodes.
Patch:
--- pathauto.inc 30 Apr 2008 03:06:42 -0000 1.1.1.1
+++ pathauto.inc 8 May 2008 05:34:38 -0000
@@ -254,7 +254,7 @@
// Special handling when updating an item which is already aliased.
$pid = NULL;
$old_alias = NULL;
- if ($op == 'update' or $op == 'bulkupdate') {
+ if ( ($op == 'update' or $op == 'bulkupdate') && drupal_lookup_path('alias', $src) ) {
if (variable_get('pathauto_update_action', 2) == 0) {
// Do nothing
return '';
Comments
Comment #1
gregglesSlightly different solution in #228762: Un-aliased nodes should still get an alias generated even if the update action is 'Do nothing with existing aliases'