WordPress.org

Support

Support » How-To and Troubleshooting » 404 – File or directory not found Error

404 – File or directory not found Error

  • I am using the magazine basic theme.

    My front page displays all of my posts. Currently, it displays 6 posts. At the bottom of the page, you can click to the next six posts by clicking “2”. When I click “3” I get the error: 404 – File or directory not found Error.

    I currently have 15 posts (6 on the first page, 6 on the second and I should have the remaining 3 on page 3). Do you know why I am getting this error?

Viewing 4 replies - 1 through 4 (of 4 total)
  • well, the most basic thing to try is to reset your permalinks. Set em to default, test your site. If it works, set back to custom

    They are already set to default

    hmm…then a link to your site might help?

    You can view all posts using the default theme? Have you tried to deactivate all plugins and test? (its the generic WP stuff for problems…. plugins, theme, permalinks)

    In the default theme, the top page does not seperate into individual pages. I deactivated and reactivated all plugins, but this did not work. I think it is something with the coding (line 20-21). Does anyone know how to change the coding to fix this problem?

    <?php get_header(); ?>
    <?php
    $options = get_option(“widget_sideFeature”);
    $posts = get_option(‘uwc_number_posts’);
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    if (is_active_widget(‘widget_myFeature’)) {
    $args = array(
    ‘cat’=>’-‘.$options[‘category’],
    ‘showposts’=>$posts,
    ‘paged’=>$paged,
    );
    } else {
    $args = array(
    ‘showposts’=>$posts,
    ‘paged’=>$paged,
    );
    }
    if(!get_option(‘uwc_number_posts’)) {
    $args = array(
    ‘showposts’=>6,
    ‘paged’=>$paged,
    );
    }
    $x = 1;
    query_posts($args);
    ?>
    <?php
    if(!stristr($_SERVER[‘REQUEST_URI’],’/page/’)) {
    if(get_option(‘uwc_latest_story’) == “on”) { echo ‘<h5 class=”latest”>’.__(‘ ‘, “magazine-basic”).’
    </h5>’; }
    if(get_option(‘uwc_post_layout’) == 1) { include (TEMPLATEPATH.’/layout/option1.php’); }
    elseif(get_option(‘uwc_post_layout’) == 2) { include (TEMPLATEPATH.’/layout/option1.php’); }
    elseif(get_option(‘uwc_post_layout’) == 4) { include (TEMPLATEPATH.’/layout/option1.php’); }
    else { include (TEMPLATEPATH.’/layout/option1.php’); }
    } else {
    include (TEMPLATEPATH.’/layout/option1.php’);
    }
    ?>
    <?php
    if(function_exists(‘pagination’)) { pagination(); }
    ?>
    <?php get_footer(); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 – File or directory not found Error’ is closed to new replies.