Hi!

I have a strange behaviour.

I have a content type XXX, with translation enabled, and I defined patterns for all languages.
I created a content of this content type with user admin (role administrator), and the path of the node is not set correctly.
The alias is the default: node/nid

However, if another role, creates a content, the url aliases are generated correctly.

Also, if I delete all the url aliases for content and then generate again with bulk, all the content aliases are generated correctly, but not in the content generated by the user admin.

Very strange!!!

Also i trace the function pathauto_node_update_alias, to show wich nodes are being updated, and I see that the problematic node never goes inside this funcion ....

Any idea?

Comments

JOINSO created an issue. See original summary.

JOINSO’s picture

Hi!

I found the problem.

In this node, $node->path['pathauto'] is 0, and 1 for the other ones.
Why this node has $node->path['pathauto'] set to 0?

ben.kyriakou’s picture

Status: Active » Postponed (maintainer needs more info)

Hi JOINSO. What you've described suggests to me that either the user admins don't have the required permissions to create URL aliases, or the node in question has been set to not have an alias (the "Generate automatic URL alias" checkbox is unchecked when editing the node). I'd recommend checking both of these to make sure that both the users can create aliases, and the node in question should have an alias generated.

If neither of these are the case, please move this back to 'Active' with any additional information you can provide.