• I’m trying to edit the 404 error in the Twenty Ten theme, but every time I do, my 404 becomes the browser’s default “this link appears to be broken”.
    I am only editing the display text, none of the actual code. I want to change “Apologies, but the page you requested could not be found. Perhaps searching will help.”
    Am I doing something wrong?

    <div id=”post-0″ class=”post error404 not-found”>
    <h1 class=”entry-title”><?php _e( ‘Not Found’, ‘twentyten’ ); ?></h1>
    <div class=”entry-content”>
    <p><?php _e( ‘Apologies, but the page you requested could not be found. Perhaps searching will help.’, ‘twentyten’ ); ?></p>
    <?php get_search_form(); ?>
    </div><!– .entry-content –>
    </div><!– #post-0 –>

Viewing 2 replies - 1 through 2 (of 2 total)
  • What’s happening is that WordPress is not being loaded when you visit a URL that does not exists. It’s due to the way you have your server set up. This problem is often fixed when people set up the pretty permalinks. Check out the Using Permalinks page in WordPress’s codex, in particular the part about creating a .htaccess file. Your server needs WordPress to handle all requested pages, instead of telling the browser that there is no file by that name.

    If you have any further questions after reading that entire page, please ask.

    We are experiencing the same problem, and we do have an .htaccess file that’s functioning fine, 301 redirecting all the old .html pages to the new WP page, etc.

    This answer makes no sense to me, because the 404 page server response seems fine, it’s just EDITING the text in the 404 template that causes the problem.

    In fact, I can edit it mildly, changing “Apologies” to “Sorry” but once i add an extra few words, (it seems to be about 8 more words) then the think breaks and goes to the default browser message.

    That’s not really an .htaccess / permalinks issue, is it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trouble editing Twenty Ten 404 error’ is closed to new replies.