Closed (duplicate)
Project:
Pathauto
Version:
6.x-1.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2010 at 10:55 UTC
Updated:
14 Jul 2010 at 16:41 UTC
I've installed Pathauto 1.3 in Drupal 6.17
Suddenly my aliases where gone; If I create new content everythings seems ok
Old content will stick on nodenumber and can't be changed to get an alias
Seems something to do with rights (according to me)
Comments
Comment #1
aklump commentedI'm experiencing the same thing with Drupal 6.16 and Pathauto 6.x-1.3. When I create a node the alias is created fine, but if I delete the alias in node edit, then save the node, then go and edit the node again (checking automatic alias checkbox), the alias is not generated. I cannot bulk generate aliases either. I am using uid 1 so it shouldn't be a permission issue.
Comment #2
finkenmann commentedSame here...
I'm working on a existing page and do some updates. Some nodes have the "automatic url" checkbox checked, some don't. If i'm check them manualy and save the node, the url is getting generated. But if i come back to the page, the checkbox is turned off again. The funny thing is that always the same pages are switching the "automatic url" checkbox off. Other pages keep always the right status and the checkbox is always on (ups... hope you get my lousy english... ;-)
I deinstalled the modul and reinstalled it again. I deleted nodes where always turned the option off and created them again, from the scratch... but nothing changed. If i run the "Bulk generate aliases for nodes that are not aliased" function, only the nodes with the checked option will getting the right url. The unchecked keep their /node/xx url. I couldn't found out why some pages alway forget the "automatic url" checkbox and some don't. Very strange!
Comment #3
mrfelton commentedSame problem for me. All my nodes are loosing their custom aliases when I edit the node. Often nodes end up with no alias at all, and right after saving the node I am shown a 404 error message, I'm guessing because ?destination parameter was pointing at the old alias, which suddenly got deleted on save.
I'm bumping this to critical, since it is screwing up all the aliases throughout my site whenever a node is edited.
Comment #4
greggles@mrfelton, I appreciate the size of the problem on your site but please consider that this is working properly on hundreds of thousands of sites.
What are the patterns in use on your sites?
Comment #5
mrfelton commentedHi @greggles. Sorry about that, probably jumped into the critical state a little prematurely. My issue is actually related to i18n, and I know there numerous similar issues about this in the queue - I have read them all, but honestly can't find one that describes my problem, or that a patch fixes.
My problem is this:
There are two languages enabled on the site:
/en - English
/ - Irish, the default.
1) Create a new, language neutra node, with a manual alias set to 'test'
2) Save the node and it has an alias of 'test' as requested
3) Edit the node, resave. No problems
4) Edit the node, and change the language to Irish. Now save the node, and I'm taken back to the node at /test
This is where the problem kicks in:
5) Edit the node again... now, the alias textfield is empty, and so if I am to git save without manually entering the alias again, the node looses it's alias.
If I then edit the node again, and add the alias back in. Then it fixes - until I re-edit the node again, and the situation at 5) occurs again. So, at this point (step 5), the alias exists and I can see it at admin/build/path/list/test. But the node edit form hasn't picked this up and filled the manual alias textbox with the value.
Comment #6
mrfelton commentedjust to add a little more info. At step 5 above, a quick dsm($node->path) at the top of the
pathauto_form_alter()shows that $node->path is empty at this point.Comment #7
greggles@mrfelton the i18n support in Pathauto (and even in core, really) is still horrible. I'll update the project page to make that more clear.
http://drupal.org/project/issues/pathauto?text=&status=Open&priorities=A... may help, or may make you cry, but hopefully it will help you identify the problems/solutions. Feel free to give hard reviews, or patch rewrites, and then mark things RTBC. I'll gladly commit them if you are behind making this work properly.
Comment #8
mrfelton commented@greggles. Thanks.
FYI, I found this issue #269877: path_set_alias() doesn't account for same alias in different languages and posted some info there http://drupal.org/node/269877#comment-3201626 , since I think it is related. I made an interesting discovery about manipulating the path of the node edit page to get $node->path to be set correctly, and hence, get pathauto to pick up the manual alias correctly.
Comment #9
gregglesSo, this is a duplicate of that?
Comment #10
mrfelton commentedIt's difficult to say really. All of these issues seem to overlap somewhat, and within each of them, there are numerous people describing problems that may or may not be the same. I'm happy with you marking this a duplicate, since the problems that are discussed in here are definitely also discussed in various other tickets.