[wp-trac] [WordPress Trac] #2730: Page titled "page" cause unrecoverable problem on permalinks

WordPress Trac wp-trac at lists.automattic.com
Wed May 17 15:37:16 GMT 2006


#2730: Page titled "page" cause unrecoverable problem on permalinks
---------------------------+------------------------------------------------
       Id:  2730           |      Status:  new                     
Component:  WordPress.org  |    Modified:  Wed May 17 15:37:15 2006
 Severity:  normal         |   Milestone:                          
 Priority:  normal         |     Version:  2.0.2                   
    Owner:  matt           |    Reporter:  sdiz                    
---------------------------+------------------------------------------------
 The "page_uris" options not updated after deleteing the page.
 Almost unrecoverable if I create a page called "page", or some other
 reserved names.

 Have to enable "Date and name based" permalinks to repeat this bug.

 Step To Reproduce
  1) Go to http://yourhost/page/2
      ==> This page show the second page of the index, as expected

  2) Add a new page, with a title called "page"

  3) Go to http://yourhost/page/2
      ==> This give the page we just created.

  4) Delete the "page" page.

  5) Go to http://yourhost/page/2
      ==> This give "404"... *BAD*

 Workaround:
  1) rm -fr wp-content/cache/*

  2) DELETE FROM wp_options WHERE option_name="rewrite_rules" OR
 option_name="page_uris";

  3) go to permalinks option page, save

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2730>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list