I have updated some nodes from D6 to D7 and they have an empty string in $node->language. Pathauto should be more robust when generating the path aliases and I propose to use rather !empty() instead of isset(). Patch attached.

CommentFileSizeAuthor
pathauto-empty-node-language.patch519 bytesklausi

Comments

dave reid’s picture

The better question is why your nodes would still have an empty language string rather than LANGUAGE_NONE? node_update_7009() was supposed to fix this.

klausi’s picture

Hm, I didn't experience any update errors and the record for node.module in the system table says 7010. Anyway, thanks for the pointer, that will fix my problem, too.

dave reid’s picture

Status: Needs review » Fixed

It might have been another module like Feeds or something that does node_save() using the improper language value.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.