Title: Search Errors, need help!
Last modified: August 18, 2016

---

# Search Errors, need help!

 *  [tbuley](https://wordpress.org/support/users/tbuley/)
 * (@tbuley)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/search-errors-need-help/)
 * When I run a search term that finds a hit, I get the following error message 
   at the top of my screen:
    Warning: Cannot modify header information – headers
   already sent by (output started at /home/freshpol/public_html/index.php:3) in/
   home/freshpol/public_html/wp-blog-header.php on line 529 (Reference an ex. [HERE](http://freshpolitics.us/index.php?s=patriot&submit=Search)
   I went to line 529, and tried a number of thigns but couldn’t iron out this message.
   529 and the code around it in wp-blog-header.php looks like this: } if ($s &&
   empty($paged)) { // If they were doing a search and got one result if (!strstr(
   $_SERVER[‘PHP_SELF’], ‘wp-admin’)) // And not in admin section header(‘Location:‘.
   get_permalink($posts[0]->ID)) } } HELP!

Viewing 1 replies (of 1 total)

 *  Thread Starter [tbuley](https://wordpress.org/support/users/tbuley/)
 * (@tbuley)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/search-errors-need-help/#post-97864)
 * Also see a former post that never got this issue resolved: [http://wordpress.org/support/3/14022](http://wordpress.org/support/3/14022)

Viewing 1 replies (of 1 total)

The topic ‘Search Errors, need help!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [tbuley](https://wordpress.org/support/users/tbuley/)
 * Last activity: [21 years, 6 months ago](https://wordpress.org/support/topic/search-errors-need-help/#post-97864)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
