In Pathauto, my URL aliases not being assigned properly according to the rules I've setup when a node is created...

I couldn't seem to find the problem...

But I've noticed that the Bulk Update fixes the URLs so they are the way they are supposed to be - but I can't always hit the bulk update button everytime I submit a node.

Any clues what the bug is? (I have a few sites that use drupal and this is the first time it happened)

Comments

Marco Palmero’s picture

Bump

tjharman’s picture

It might help if you describe your rules as you are defining them, and the paths that pathauto is giving you automatically, then showing us what paths you're getting once you do a bulk update.

Marco Palmero’s picture

Thanks for your tip...

My usual setting is:

[catpath]/[title] for pathauto default under "Node path settings"

Also, Every now and then when I'm creating a new node I get the following error - but the funny thing is when I press back and look at the page - everything looks normal.

I don't know if this problem is related to these errors:

user error: Duplicate entry 'xxx' for key 2
query: INSERT INTO url_alias (src, dst) VALUES ('node/544/feed', 'xxx') in /xxx/blog.photos2view.com/includes/database.mysql.inc on line 66.

warning: Cannot modify header information - headers already sent by (output started at /xxx/blog.photos2view.com/includes/common.inc:384) in /xxx/blog.photos2view.com/includes/common.inc on line 192.

---
Finally, with the bulk update fixing up things...

When it isn't working properly it just assigns

baseURL.com/blah-title

After Bulk Update it then follows the rules set out in pathauto:

baseURL.com/main-category/subcategory/blah-title

The funny thing is - sometimes it works and sometimes it doesn't.
Sometimes I'm able to force it to work by simply deleting the pathauto line when i edit a node then submit it again - sometimes it doesn't.

It doesn't seem to follow a consistent pattern.

jamespvg’s picture

Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev

Bump. I am also experiencing a similar problem with 4.7.

Story aliases are set to [catpath]/[title], but pathauto generates [title] instead. Removing the old entries and performing a bulk update corrects the problem, but is not very practical in the long term...

s0l3x’s picture

Also experiencing this problem on 4.7. I'm thinking that it may have something to do with free-tagging.

Marco Palmero’s picture

Yeah, I would guess that the free tagging could be an issue for pathauto.

When I chose too many taxonomy categories for the post, the pathauto module had to decide which URL to place a priority on...

The way I solved my problem above was to start from scratch and keep the URL system simple. Any URL's too complicated, long etc.. and this module collapses.

dr. gubó’s picture

I also experienced the problem with only [title] paths made by pathauto instead of the given syntax (which was [vocab]/[catpath]/[title] in my case). I found out that it was because I had a vocabulary with free-tagging (running 4.7) for the nodes I was posting. Turnin free-tagging off for the vocabulary solved it, now paths are generated as I wanted, using the above syntax. This means that I still have to create new categories manually at admin/taxonomy, and can't do this when adding the node (with just writing the new category in the form). I hope this incompatibility with free tagging in 4.7 will be solved, in every other aspect pathauto is a very well-working module for me.

greggles’s picture

Title: Pathauto, URL aliases not being assigned properly when node created - Bulk Update fixes the problem » aliases involving taxonomy not assigned for nodes with freetagging - Bulk Update fixes the problem

Changing the title to be a little more descriptive.

@MarcoPolo - your original report was against pathauto 4.6. Were you using the freetagging module at the time or was that a mis-label?

Thanks for identifying the problem and letting me know about 4.6.

firstov’s picture

same story goes for me: I'm using tagadelic module which requires a vocab with free tagging checked on.
When I've set pathauto to blog/[user]/[vocab]/[catpath]/[title][yyyy][mm][dd].html it ignores vocab and catpath altogether.
For other categories (no free tagging) it works fine.

ncameron’s picture

*Bump* Experiencing the same problem with 4.7.3. Apart from disabling free tagging has anybody come across a patch/fix/solution?

greggles’s picture

Hi,

*bumping* the issue doesn't help. If you want to help, but aren't a coder consider this advice:
http://drupal.org/node/73178

Look at the comment in #3: "It doesn't seem to follow a consistent pattern."

I don't experience this problem, so if you want me to look into fixing the problem, it would be helpful if someone can provide concrete steps for how to make the problem happen consistently. I need examples of every setting involved in creating the problem (freetagging or not) version numbers (pathauto revision numbers, drupal revision numbers). Until then, it's just another bug that I don't understand.

If someone who is affected by this issue wants to provide a patch, then that is the easiest way to see it fixed quickly.

greggles’s picture

Status: Active » Closed (duplicate)

Also, this is a duplicate of http://drupal.org/node/60084

cre8d’s picture

Hi -

Here's the details for my setup:

Drupal 4.7.3
pathauto.module,v 1.22.2.1 2006/08/30 20:29:16

pathauto settings:

Haven't touched anything under Geneder
Node path settings:
Default path pattern: [cat]/[title]
Pattern for blog entry paths: (empty)

Blog settings:

Free tagging vocabulary + list selection vocabulary

Create a blog entry free tagged "category" called "blog title" and it comes up with

/blog-title

Bulk updating paths it changes to:

/category/blog-title