#2112 closed defect (bug) (fixed)
Redirect loop of forums
Reported by: | Funkatronic | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.2.2 |
Component: | Component - Forums | Keywords: | |
Cc: |
Description
Found this bug by accident and I've been able to reproduce it on BbPress 2.2.3 and WordPress 3.5. The following creates a redirect loop for the forum it's performed on and causes the forum page to be unavailable:
- Create a category
- Create a forum
- Make the category the parent of the forum
- Trash the category without removing the forum as a child
- Go to the forum edit page and update it with no parent selected
After doing this the permalink of the forum becomes an infinite redirect loop and you’ll get an error from your server and browser. When you get the error screen, your browser should show the old permalink that includes the category slug, even though the new permalink shouldn't have it. The bad part is that even if you untrash the category and make it the parent of the forum again, the redirect loop stays the same. This also makes the slug of said forum unusable.
I did this by accident and then was able to reproduce using the previously mentioned steps. Just wanted to let you guys know. Can’t find a way to fix this but to prevent it from occurring, make sure you unlink forums from a category BEFORE you want to delete said category.
Change History (7)
#1
@
12 years ago
- Keywords 2nd-opinion dev-feedback added; needs-patch removed
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
#4
in reply to:
↑ description
@
11 years ago
- Keywords 2nd-opinion removed
- Milestone set to Awaiting Review
- Priority changed from high to normal
- Severity changed from major to normal
Replying to Funkatronic:
- Create a category
- Create a forum
- Make the category the parent of the forum
- Trash the category without removing the forum as a child
- Go to the forum edit page and update it with no parent selected
Following these steps exactly I cannot reproduce the issue.
@sandy786 Can you reproduce the issue using the above steps or a different method?
#5
@
11 years ago
Just tested this exact process again, and also cannot duplicate given these steps.
That said, there are some post hierarchy issues with pages in WordPress core right now, mostly surrounding non-published post statuses. Is it possible the trashed category was private or hidden?
I can't duplicate this in trunk. Closing as worksforme. If anyone can duplicate, go ahead and reopen.