Make WordPress Core

Opened 8 years ago

Closed 7 weeks ago

#41128 closed defect (bug) (duplicate)

404 Page not found after using same URL in post / page

Reported by: jpgos's profile jpgos Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8
Component: Permalinks Keywords:
Focuses: Cc:

Description

Starting from a clean Wordpress 4.8 installation.

  1. Configure permalinks to: http://domain.com/post-title/
  2. Create a post with title 'new'
  3. Remove the post with title 'new' to trash
  4. Create a new page with title 'new'
  5. Remove post 'new' from trash (not necessarily, both cases result in 404)
  6. The page you created trows a 404 due to a database error since it has two different objects with the same URL, though different objects.

Change History (3)

#1 @SergeyBiryukov
8 years ago

  • Component changed from Database to Posts, Post Types

This ticket was mentioned in Slack in #core by sirlouen. View the logs.


7 weeks ago

#3 @SirLouen
7 weeks ago

  • Component changed from Posts, Post Types to Permalinks
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Currently its not throwing exactly a 404, but both post and page have the same ID, priorizing the first posted. This seems to be a duplicate of #13459, so I'm going to be closing this.

Note: See TracTickets for help on using tickets.