Closed (fixed)
Project:
Pathauto
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2007 at 03:57 UTC
Updated:
13 Feb 2008 at 13:05 UTC
Pathauto creates two aliases for all nodes. One is the correct alias but the other adds /feed to the end of the path.
Below is an example of it's behaviour:
name-of-node - node/1
name-of-node/feed - node/1/
I have noticed this was an issue previously but the issues raised then were apparently solved so I'm not sure what's going on here.
I have tried different patterns but they all do the same thing.
I tried the Dev release of Pathauto also. The same problem occurred.
Comments
Comment #1
gregglesThis is interesting.... I can't reproduce it, but I imagine that it might be the result of some leftover variables.
Can you paste in the results of:
select * from variable where name like 'pathauto%';
Comment #2
MediaMunkey commentedHere's the SQL dump.
Comment #3
gregglesthis is basically what I thought - can you run this against your db:
delete from variable where name = 'pathauto_node_supportsfeeds';If that works then I'll make an update that will do that for everyone.
Thanks for your help debugging this!
Comment #4
gregglesLooking at pathauto.install I see it's getting set there. Weird!
So, two things:
1) unset the variable
2) stop setting it in the install
Comment #5
gregglesI just committed a fix for this to the DRUPAL-5--2 branch. Thanks for the report.
Comment #6
MediaMunkey commentedNo problem. Thanks for the fix btw, seems to do the job :)
Comment #7
TBarregren commentedSorry to re-open this bug, but the problem is still there.
1) As suggested above, I deleted
pathauto_node_supportsfeedsfrom thevariable-table:I also verified that it was really deleted:
2) Next, I visited
admin/build/path/delete_alland deleted all aliases.3) Then, I visited
admin/settings/pathautoand checked Bulk generate aliases for nodes that are not aliased for nodes, taxonomy and users. (I have also tried with Create feed aliases both checked and unchecked.)4) Now, on
admin/build/pathI see that Pathauto in addition to abc/def for node/1 also has generated abc/def/feed for node/1/.5) Finally, back in MySQL, I see that the variable is back again:
Comment #8
MediaMunkey commentedThere is actually a little more to the fix then just that. If you take a look at the CVS message that greggles added (http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/pathauto/pa...), you'll notice that the following code needs to be added to the pathauto.install file.
just attach it to the end of the file and all should be good. :)
Alternatively apply the patch http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/pathauto/pa...
Comment #9
MediaMunkey commentedComment #10
TBarregren commentedI am embarrassed that I didn't thought of the cache. Thanks!
Comment #11
gregglesI think it might be more than that...but I'm hopeful that you are right.
Comment #12
greggles@TBarregren - so, the problem is solved for you?
Comment #13
(not verified) commentedComment #14
ruharen commentedI have to reopen this.
I've deleted that variable you mentioned above, but pathauto still creates a /feed alias for my blog nodes.
I've double-checked that the variable is deleted and I'm sure it is.
I can't understand why is this happening.
Also, when I delete the node, the correct alias gets deleted to, but not the /feed alias...
Comment #15
MediaMunkey commentedI don't see how you can still be having this problem.
If you have the latest copy of Pathauto and you have deleted the culprit variable from your database this shouldn't be happening.
I'm guessing you updated Pathauto from a version that had this problem, correct?
In that case make sure that you have run the update script as this should delete that variable and clear up this issue.
If this doesn't work the only other thing I can think of is to get rid of all your Pathauto variables and the Pathauto module folder and reinstall a fresh copy of the latest Pathauto.
Again, if this doesn't work then I honestly don't know why that is and your best bet would be to have greggles take a look at the situation.
Comment #16
ruharen commentedI think I haven't replaced correctly pathauto on the last update.
The problem has solved after uninstalling pathauto, deleting its folder and reinstalling.
Thanks for helping :)
Comment #17
MediaMunkey commentedGood to see you fixed the situation, and better yet that there wasn't some bug still in the code :)
Comment #18
gregglesJust a note that this was added back in http://drupal.org/node/216245 because og module uses that. The UI for controlling it is now present again so sites that don't need/want this feature can just turn it off.