Title: 404 Error cuts off some get_header code
Last modified: August 19, 2016

---

# 404 Error cuts off some get_header code

 *  [spfarquhar](https://wordpress.org/support/users/spfarquhar/)
 * (@spfarquhar)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/404-error-cuts-off-some-get_header-code/)
 * Hi,
 * I recently installed WP 2.6 using a Revolution theme.
 * When I go to an invalid URL to test the 404.php file, the first part of the returned
   HTML code that the get_header returns is missing.
 * On closer inspection, what is being stripped off is the following sections:
 * <head>
    … </head> <body> <div id=”wrap”> </div> <div id=”header”> </div> <div
   id=”navbar”> </div>
 * what is NOT being stripped is…
 * <div id=”subnavbar”>
    <ul id=”subnav”>
 * and all code after that.
 * What analysis have I done already?
    1. I have disabled all WP plugins, but error
   is still the same. But less of the header code is cut off 2. I have changed the
   theme back to default theme. When loading same invalid URL, now I get a 501 error.
 * It’s as if XXX bytes of the returned code is being stripped each time.
 * I am a WP user with about a dozen sites and can read PHP/HTML but this has stumped
   me.
 * The only non-standard setting is that I have installed WP in a sub-folder called
   2.0 and then changed my htaccess and index.php files to redirect to this sub-
   folder.
 * All valid post and page URLs are formatted correctly.

The topic ‘404 Error cuts off some get_header code’ is closed to new replies.

## Tags

 * [404-error](https://wordpress.org/support/topic-tag/404-error/)
 * [get_header](https://wordpress.org/support/topic-tag/get_header/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [spfarquhar](https://wordpress.org/support/users/spfarquhar/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/404-error-cuts-off-some-get_header-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
