WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks Randomly Require Reset (3 posts)

  1. dennissmolek
    Member
    Posted 2 years ago #

    I have two systems running the same version of a site. One is on my Development server, the other is on a production unit.

    The production unit is a Rackspace VPS.

    I've cloned the two systems and they are exactly the same.

    The issue I'm having is the permalinks are perfect, you can make changes, make edits, everything works.

    Then a few days later the whole thing 404's beyond index.(production)

    So as a troubleshoot I refresh the permalinks. Bam, its all back.

    Now I cant tell if my client is editing pages and that causes them to 404, but would that bring down the ENTIRE site of permalinks?

    My Apache settings on the two systems are the same, and it all works perfectly once reset.

    So what would cause the permalinks to need to be changed?

  2. dennissmolek
    Member
    Posted 2 years ago #

    As an update,

    It's actually any time a page or post is edited. Just changing content requires this.

  3. dennissmolek
    Member
    Posted 2 years ago #

    UPDATE:
    RESOLVED

    I turned all the plugins off and the issue went away.
    Narrowed it down to a plugin I wrote (DOH!)

    The issue was my deceleration of custom Taxonomies.
    I copied the code straight from Custom-Post-UI which left the slug field blank:

    register_taxonomy('sections',array (
      0 => 'alerts',
      1 => 'faq',
      2 => 'Testimonials'
    ),array( 'hierarchical' => false, 'label' => 'Sections','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => ''),'singular_label' => 'Section') );

    The correct code:

    register_taxonomy('sections',array (
      0 => 'alerts',
      1 => 'faq',
      2 => 'Testimonials'
    ),array( 'hierarchical' => false, 'label' => 'Sections','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => 'Sections'),'singular_label' => 'Section') );

    Notice the slug array under rewrite. For some reason post edits caused the Permalink structure to glitch out with a blank value.

Topic Closed

This topic has been closed to new replies.

About this Topic