Opened 12 years ago
Closed 12 years ago
#22592 closed defect (bug) (duplicate)
Post Permalink Broken When No Post Title
Reported by: | miqrogroove | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
Something really bizarre just happened. This is what I did:
- Upload an image into QuickPress.
- Insert the image into the post body.
- Click the Publish button.
- Click View Post.
Expected result:
See the new post with the uploaded image.
Actual result:
WordPress 404
I need to do some additional testing. What I can see so far is that the assigned post ID was 18, but the post behaves as though an invalid slug were assigned. It is generating a permalink like /2012/11/18/ and my permalink structure is /%year%/%monthnum%/%postname%/
Change History (6)
#1
@
12 years ago
- Summary changed from QuickPress Post Permalink Broken to Post Permalink Broken When No Post Title
#3
@
12 years ago
The direct cause of this problem is the archive rewrite:
s:39:"([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$"; s:63:"index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]";
This should go away after 100 posts exist in the database.
The actual post rewrite shows up much later at:
s:44:"([0-9]{4})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$"; s:81:"index.php?year=$matches[1]&monthnum=$matches[2]&name=$matches[3]&page=$matches[4]";
#4
@
12 years ago
Confirmed. Uploaded several photos, then created a post with ID 107. Permalink works correctly on that post.
Note: See
TracTickets for help on using
tickets.
Same issue reproduced in the main editor. It gave me a permalink of /2012/11/21/ and a 404 error on the post.