I changed the separator from - to _ (underscore) as I want the URL separator to be that way. But I got this error:

    * You have configured the Underscore _ to be the separator and to be removed when encountered in strings. This can cause problems with your patterns and especially with the catpath and termpath patterns. You should probably set the action for Underscore _ to be "replace by separator"
    * You are using the token [user-raw] which is not valid within the scope of tokens where you are using it.
    * You are using the token [user-raw] which is not valid within the scope of tokens where you are using it.

What's up with first error? Does it mean I'm going to run some error in the future? What will happen if I still persist using the _ as the separator?

I have no idea what's causing the last two errors regarding token and what it actually means. I have not changed anything except the separator from its setting.

Advice much appreciated.

Comments

greggles’s picture

Title: Pathauto Error » Pathauto separator set to be removed message is confusing - improve it
Component: Miscellaneous » Documentation
Category: support » bug

The second and third error are probably an intermittent bug which was fixed in the latest 6.x-1.x-dev. Please update to that.

The first error is trying to explain that you have underscore as your separator but your punctuation settings are set to remove underscores so that the processing will result in something like this:

"my title" has spaces replaced with the separator _ so it becomes "my_title"
"my_title" is then processed by the punctuation handling code where you have set the Underscore to be removed so it becomes "mytitle"

Several people have complained about that message. Can you think of a way to state it which would be more understandable for a typical end-user?

halloffame’s picture

The message is perfectly understandable. Its just the fact that one is a total newb (like myself) to understand it. But now I can perfectly understand it after learning what are 'patterns', what is 'termpath', 'cathpath', and that I can change punctuation actions under 'punctuation settings'. I did not know any of that when I encountered the error.

But I would have probably understand if it was something like this: 'You have configured the Underscore _ to be the separator. If you want to use _ to be the separator you may need to remove the 'remove' option set for the _ in 'punctuation settings' below. This can cause problems with your URL aliases.' You know... something like that.

Thanks.

P.S: I just came across some people saying that - is more SE friendly than _. What's your take on this? (I know totally out of drupal/pathauto subject. Forgive me.)

dave reid’s picture

Status: Active » Fixed

At this point, this issue is going to be marked as fixed due to a lack of follow-up. If you can provide the requested details or more information, please re-open the issue.

This message is automatically generated. If you feel it could be improved, feel free to comment on http://drupal.org/node/467548

Status: Fixed » Closed (fixed)

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