Term pages have links that give 404 errors

Tally - September 28, 2009 - 22:00
Project:Web Links
Version:6.x-2.3
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

My problem is similar to http://drupal.org/node/421528

I am running Drupal 6.14 (the Pressflow version) with a multi-site installation. Weblinks is in the common module area.

I have PathAuto set up as suggested in the above issue: links/[vocab-raw]/[catpath-raw] for Taxonomy term path settings. PathAuto is set to have link/[title-raw] for Node path settings.

When I am at example.com/weblinks, the link title has a URL of example.com/weblinks/goto/26 and clicking on it takes me to the link. (I have WebLinks set up to link the title to the site.) Everything seems to work fine on the weblinks page.

When I click on a category for that link, e.g., Devices, I go to example.com/links/web-links/methods/devices. The link title then has a URL of example.com/links/web-links/methods/weblinks/goto/26 and clicking it gives me a 404 error.

Somehow, PathAuto/term info is being added to the title's link path when I am viewing a single category of links. And, yes, I am clearing the cache.

I must have my configuration screwed up somewhere. Anyone have any hints?

#1

NancyDru - September 30, 2009 - 03:00

Well, the good news is that you don't have your configuration screwed up. I can reproduce this problem.

The bad news: I haven't a clue as to why this is happening. The HTML is built correctly. In actuality there should be no path alias when you are using click tracking (although I would like to fix that).

I have tried this with three different themes (including Garland and Bluemarine) so it is not a theme issue.

#2

NancyDru - September 30, 2009 - 03:25

I have also disabled both the core Path module and the Pathauto module and deleted all aliases to a node and this still occurs.

#3

Tally - September 30, 2009 - 03:59

Thanks for the hint. I turned off click tracking and the links work. That was one option I did not think to turn off.

I am using Taxonomy Block to display the web link category pages and that is what really brought this to my attention.

Good luck finding the bug. I wish I could help with the code, but I am still struggling with understanding Drupal code. I'll be ready to test the patch, though. I am real good at breaking things. :)

#4

NancyDru - September 30, 2009 - 05:07

I don't use TB, so that's not the cause. I'm guessing this is a core bug, but can't be sure.

#5

Tally - October 22, 2009 - 19:17

The problem is running PathAuto with Weblinks. If I don't use PathAuto, no problem. But, I want to use PathAuto. See http://drupal.org/node/278368 The patch there was just incorporated in the latest release of PathAuto.

To get the terms links working after the update, I used the following settings in PathAuto:

[termpath-raw]/[title-raw] for Web links Node path settings
[cat-raw] for Web links Taxonomy term path settings.

I had to use the above settings because for multilevel categories, the parent term is repeated in the path that appears on the category/group page.

#6

NancyDru - October 22, 2009 - 20:14

I also use PA. My real life situation is going to put me out of commission for at least several days if not forever.

#7

Starminder - December 4, 2009 - 20:33

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.