Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey there, smk-ka. I just installed and enabled SUA in a Drupal 6.12 site of mine. For some reason, I can't get the module to work.
For example, I have the following alias:
mysql> select * from url_alias where dst = 'reset-your-password'\G
*************************** 1. row ***************************
pid: 5
src: node/11
dst: reset-your-password
language:
1 row in set (0.00 sec)
But going to /reset-your-password/edit fails to bring up the "Edit" page for that node.
I've disabled the Global Redirect module. Any suggestions for how I can debug this?
Thanks,
Nick
SoftCom Inc.
http://softcom.com
Comments
Comment #1
smk-ka CreditAttribution: smk-ka commentedDo you have Content Translation enabled? If so, what are your language settings?
Comment #2
nickhoffman CreditAttribution: nickhoffman commentedThe Content Translation module listed under "Core - optional" at /admin/build/modules/ is disabled. Also, I have no recollection of ever playing with content translation settings.
Comment #3
smk-ka CreditAttribution: smk-ka commentedTesting with translation/locale disabled altogether and creating a new node with a manual path alias is working ok for me. Is the node edit link correct, ie. if you view the node does it show up as "/reset-your-password/edit" or is just requesting that path resulting in a page not found?
Comment #4
nickhoffman CreditAttribution: nickhoffman commentedThe "Edit" tab on both /reset-your-password and /node/11 links to /node/11/edit , rather than /reset-your-password/edit .
If I manually request /reset-your-password/edit , Drupal returns "Page not found".
Thanks for your help with this!
Comment #5
nickhoffman CreditAttribution: nickhoffman commentedI just noticed the following blurb on the URL Alter page:
Does this mean that SUA won't work properly if custom_url_rewrite() exists in settings.php ?
Thanks,
Nick
Comment #6
nickhoffman CreditAttribution: nickhoffman commentedI keep responding to my own posts!
After disabling the following functions in sites/default/settings.php :
SUA works perfectly.
It might be helpful for future users of SUA if there was a note in the README stating that those 2 functions break SUA. What do you think?
Cheers,
Nick
SoftCom, Inc.
http://softcom.com
Comment #7
smk-ka CreditAttribution: smk-ka commentedRight, at least it works for you now. I'll add a sentence about what the Url Alter module is good for and that it requires changes to code in certain cases.