WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4919 closed defect (bug) (invalid)

Page Permalink Wonkiness?

Reported by: technosailor Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

I'll do my best to describe this problem. It would help if I knew where the problem was occurring but several hours of debugging have really gotten me nowhere.

So my permalink structure is /%postname%/. I have existing pages that work as expected. An example would be http://www.technosailor.com/about which takes you to a Page with bio info on me. No problem, right?

Today I went to create a new page. I made a new template file for the page ( Template Name: Self Importance Test ) called self-test.php.

Into WordPress I go and create a new blank page called "The Technosailor Self Importance Test" - using the Self Importance Test template, which is available so WordPRess sees it, and it's slug is the-technosailor-self-importance-test.

When accessing this page (http://technosailor.com/the-technosailor-self-importance-test/), WordPress 404s.

Hmmm, thought I... let's debug. I've tried a variety of different debug methods - all have failed:

  • Regenerate permalinks
  • Rename slug
  • Create a new page
  • Change Template Using to Default
  • SVN'd up query.php and rewrite.php back to the beginning of August
  • Dumped $wp_query object with print_r into HTML comments inside header.php and noticed that the query was looking for post_type 'post'. I've left this in place for reference

I'm kind of at a loss here. I guess it COULD be a plugin too but my plugins have not really changed in months and making pages has always worked before.... Is this a bug?

Change History (5)

comment:1 technosailor7 years ago

Let me correct myself. No page permalinks work. I though the About page did but did not realize I had a stale post also called About. I deleted that, went to Manage, clicked on View next to the Page that was supposed to be my About page and I got a 404. Subsequent tests on other pages did the same thing.

I'd really say that there is something very wrong with Pages and permalinks.

comment:2 technosailor7 years ago

I've now also disabled all plugins and confirmed the problem still exists.

comment:3 technosailor7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

comment:4 technosailor7 years ago

My systems guy identified the memcache object cache as the proble,. Problem solved. Well for WP anyway... not the memcache object cache.

Pardon the noise. :)

comment:5 Nazgul7 years ago

  • Milestone 2.3 deleted
Note: See TracTickets for help on using tickets.