I have i18n installed to get the site in 3 languages. Some of my pages (nodes path: page/) are having different titles in different languages and pathauto works properly on them but some of the pages are having the same title (mypagetitle) in the three different languages. Each time I update something in those nodes I get the message:
warning: Invalid argument supplied for foreach() in /htdocs/drupal6/sites/all/modules/i18n/i18ntaxonomy/i18ntaxonomy.module on line 554.
warning: Invalid argument supplied for foreach() in /htdocs/drupal6/sites/all/modules/i18n/i18nsync/i18nsync.module on line 192.
user warning: Duplicate entry 'page/mypagetitle-en' for key 2 query: UPDATE mysite_drupal6_url_alias SET src = 'node/34', dst = 'page/mypagetitle', language = 'en' WHERE dst = 'page/mypagetitle' in /htdocs/drupal6/modules/path/path.module on line 108.
warning: Invalid argument supplied for foreach() in /htdocs/drupal6/sites/all/modules/i18n/i18ntaxonomy/i18ntaxonomy.module on line 554.
warning: Invalid argument supplied for foreach() in /htdocs/drupal6/sites/all/modules/i18n/i18nsync/i18nsync.module on line 192.
user warning: Duplicate entry 'page/mypagetitle-de' for key 2 query: UPDATE mysite_drupal6_url_alias SET src = 'node/48', dst = 'page/mypagetitle', language = 'de' WHERE dst = 'page/mypagetitle' in /htdocs/drupal6/modules/path/path.module on line 108.
Anyway, what I understand from 'user warning' is that Pathauto "complains" of having three nodes with the same title and therefore with the same generated path. The site works because of each language is getting its language path (en/ de/ es/) for its nodes from i18n module and the path conflict seems to disappear.
I have no idea what means the rest of the warnings concerning i18n module.
I don't know if this is a problem of pathauto, i18n or both. As I said, the site works in spite of these warnings but they are very annoying.
Comments
Comment #1
Freso commentedI think it's a problem with core's Path module, actually. Either that or the i18n module collection. If you take a look, none of the errors are spawned by Pathauto files. Moving to path.module for now. Feel free to move to i18n if you find it to be more appropriate there. (I also assigned it to the latest stable version of Drupal 6. If you're running an earlier version or 6.x-dev, please do change the version.)
Comment #2
metabits commentedI am using D6.2, so drupal version was not the problem.
I have already posted by i18n module issues.
Thank you anyway.
Comment #3
Freso commented@psc: The problem seems to be that Drupal( core)'s path.module doesn't handle identical aliases in different language domains. This issue is independent of Pathauto.
Comment #4
Alice Heaton commentedFor the i18ntaxonomy issue, you might want to upgrade to the latest i18n ; I had that error before and it went away.
For the path issue, you might want to try this http://drupal.org/node/228792 the patch posted in comment #11 - it solved that problem for me (though some people reported it didn't solve it for them, so there might be other causes).
Hope this helps :)
Comment #5
ainigma32 commentedSolution provided so I'm setting this to fixed.
Feel free to reopen if you think that is wrong.
- Arie