Closed (fixed)
Project:
Path redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Oct 2008 at 20:59 UTC
Updated:
17 Feb 2009 at 07:00 UTC
Environment:
- Drupal 6.10
- Pathauto 6.x-1.1 with "Create a new alias. Redirect from old alias." Update Action enabled
- Path Redirect 6.x-1.x-dev
When editing a node, unchecking the "Automatic alias" box and manually entering a URL fails to create a 301 redirect from the original URL to the new one.
Comments
Comment #1
todd nienkerk commentedThis bug has also been verified using Pathauto 6.x-2.x-dev.
Comment #2
dave reidCan you still confirm the problem with latest pathauto and 6.x-1.x path_redirect?
Comment #3
luti commentedDrupal 6.10 ???
Comment #4
todd nienkerk commentedLUTi: Sorry -- that's a typo. I must've been thinking of whatever Drupal 5.x release was out at the time. When I posted this issue, I was using the most recent stable 6.x release available.
Dave Reid: I tried installing the latest 6.x-1.x-dev release of path_redirect. When I ran update.php, I got this error:
Comment #5
dave reid@Todd: That was a small typo in an update function (see #365555: Failed: ALTER TABLE {path_redirect} CHANGE type `type` INT(small) NOT NULL) which has already been fixed. How about the original problem? Are you still having it?
Comment #6
todd nienkerk commentedDave Reid: Just for kicks, I tried installing 6.x-1.0-beta1 on top of the dev snapshot. As you can probably guess, I got errors galore. I've included them here just in case they're helpful. They're probably not, though, because moving from a snapshot to a supported release isn't typical behavior.
Comment #7
todd nienkerk commented@ Dave Reid re: #5: I uninstalled and reinstalled Path Redirect 6.x-1.0-beta1. I am still experiencing the problem I originally reported. Here's the new environment:
- Drupal 6.9
- Pathauto 6.x-1.1 with "Create a new alias. Redirect from old alias." Update Action enabled
- Path Redirect 6.x-1.0-beta1
When I uncheck the "Automatic alias" box and manually enter a new alias, the old alias disappears from the URL aliases list (Pathauto's behavior), but Path Redirect fails to create a 301 redirect. No redirects are listed at /admin/build/path-redirect.
Comment #8
todd nienkerk commentedSwitching issue to the appropriate version.
Comment #9
dave reid@Todd: The errors in #6 are very weird, because it's running all the update functions, even though there should have only been one update to run. In that case I would recommend uninstalling and re-installing like you have done, so you can start with a clean slate. I'll test the 6.x -> 6.x updates on one of my sites. Could I bother you to try the Pathauto 6.x-1.x version?
Comment #10
todd nienkerk commented@Dave Reid: Always happy to help. Unfortunately, updating Pathauto 6.x-1.x does not solve the problem. Same behavior described above.
Comment #11
dave reidOk yeah I'm having problems with it too. I'm looking into it and will post results and progress back here.
Comment #12
dave reidPathauto integration has been fixed in 6.x-1.x (I even wrote a test case to make sure it is working). I'm also working with greggles to update pathauto to use the updated and proper path_redirect API. The issue in pathauto is #365992: Update integration with path_redirect.
BTW, if you uncheck the 'automatically create path alias' checkbox used by pathauto, the pathauto module cannot create an automatic redirect since it's no longer in control of the alias.
Comment #13
dave reid