WordPress.org

Ready to get started?Download WordPress

Forums

Custom Permalinks
404 ERROR at 3.3.1 + any version of Custom Permalinks (10 posts)

  1. 127.0.0.1
    Member
    Posted 2 years ago #

    Hi folks,

    I'm using WP 3.3.1 and tried all versions of Custom Permalinks. I use this plugins only for categories. However, I see my theme's 404 page when I try to read a post in any category.

    I use this structure on permalinks : /%category%/%postname%.html

    Any ideas would be appreciated. Thanks.

    http://wordpress.org/extend/plugins/custom-permalinks/

  2. Bogieknight
    Member
    Posted 2 years ago #

    Not wishing to hijack your post but I'm having the same issue. Hopefully someone in the know will shed some light on this.

  3. gloria_munoz
    Member
    Posted 2 years ago #

    Same error...any help?

  4. gloria_munoz
    Member
    Posted 2 years ago #

    Hi!

    Look what I've found just after post here!

    http://wordpress.org/support/topic/changing-permalinks-gives-404-error?replies=5

    That works for me!

  5. Bogieknight
    Member
    Posted 2 years ago #

    Hello Gloria,

    Thanks for the tip. I tried it but unfortunately it didn't work for me :(

  6. nike2000
    Member
    Posted 2 years ago #

  7. 127.0.0.1
    Member
    Posted 2 years ago #

    Hey guys,

    I have a solution. Get the version 2.7.9 and replace line #161 with this SQL query:

    $sql = "SELECT $wpdb->posts.ID, $wpdb->postmeta.meta_value, $wpdb->posts.post_type FROM $wpdb->posts ".
    "LEFT JOIN $wpdb->postmeta ON ($wpdb->posts.ID = $wpdb->postmeta.post_id) WHERE ".
    " $wpdb->postmeta.meta_key = 'custom_permalink' AND ".
    " $wpdb->postmeta.meta_value != '' AND ".
    " $wpdb->posts.post_status = 'publish' AND ".
    " ( $wpdb->postmeta.meta_value = LEFT('".mysql_escape_string($request_noslash)."', LENGTH($wpdb->postmeta.meta_value)) OR ".
    " $wpdb->postmeta.meta_value = LEFT('".mysql_escape_string($request_noslash."/")."', LENGTH($wpdb->postmeta.meta_value)) ) ".
    "ORDER BY LENGTH($wpdb->postmeta.meta_value) DESC";

    this works for me.

  8. Bogieknight
    Member
    Posted 2 years ago #

    Hi 127,

    When you say 'version 2.7.9' do you mean WP version or custom permalinks version? Sorry if this seems like a banal question, but I'm not very accomplished in this area!

  9. 127.0.0.1
    Member
    Posted 2 years ago #

    You should use version 2.7.9 of the plugin, of course ;)

  10. Bogieknight
    Member
    Posted 2 years ago #

    I gave that a go but it didn't work. What I did notice though was whatever I put in the 'custom structure' box it failed to work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic