an automatic path is not being created.

"Automatic alias" is checked. It says "An alias will be generated for you." but when I submit the page I get the error "The path is already in use".

Comments

greggles’s picture

Component: User interface » Code
Category: support » bug

I guess this is a known problem - http://drupal.org/node/51684

Can you confirm if that solves the problem for you? If so perhaps we can do something to try to fix it.

nick@guillemot-kayaks.com’s picture

Thanks. Yes, that fixed it.
My url_alias table contained a blank alias.
Since this error has occurred more than once, may I suggest that an inelegant solution would be that when the alias field is left blank that Pathauto should assume a new alias is desired instead of giving an error.

greggles’s picture

Title: "The path is already in use" » Pathauto should not attempt to create blank aliases - prevent "The path is already in use" issues

I agree we should fix it, but I'd rather fix the original bug: allowing a blank alias.

nick@guillemot-kayaks.com’s picture

FWIW - I first got this problem after installing the Devel module. I did what I needed with Devel and then turned it off. It was some time after this that I noticed the blank alias problem.

Well, I just turned Devel back on to do something, and then turned it off again. I re-experienced the blank alias problem.

I wonder if anyone else can reproduce the problem in the same manner?

dgp’s picture

I had the exact same problem (a blank 'dst' field in the url_alias table), and again, it was an Acidfree node. This is a bug in Acidfree, although clearly it could be blocked by a patch to Pathauto to refuse to create blank aliases.

joachim’s picture

Version: 5.x-2.3 » 6.x-1.1

I'm seeing this with the latest version on D6.

I have not set a pattern for page nodes, nor have I set a default pattern.
This means that pathauto creates a blank alias for a new page node, which then leads to 'already in use' errors for subsequent node creation.

joachim’s picture

Very strange -- I can't reproduce this on my development site.
I got this problem on a production site, so I don't know exactly what caused the blank alias to be created.

dave reid’s picture

Category: bug » support
Status: Active » Fixed

I haven't ever seen this error and Pathauto has explicit check to prevent an empty alias from being written. Marking as fixed. If you can re-produce with just a fresh core install + latest Pathauto code, please change the status back to active.

Status: Fixed » Closed (fixed)

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