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

smk-ka’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have Content Translation enabled? If so, what are your language settings?

nickhoffman’s picture

The 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.

smk-ka’s picture

Testing 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?

nickhoffman’s picture

The "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!

nickhoffman’s picture

I just noticed the following blurb on the URL Alter page:

replaces the need for custom_url_rewrite() functions in settings.php

Does this mean that SUA won't work properly if custom_url_rewrite() exists in settings.php ?

Thanks,
Nick

nickhoffman’s picture

I keep responding to my own posts!

After disabling the following functions in sites/default/settings.php :

  • custom_url_rewrite_outbound
  • custom_url_rewrite_inboud

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

smk-ka’s picture

Status: Postponed (maintainer needs more info) » Fixed

Right, 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.

Status: Fixed » Closed (fixed)

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