Title: Errors in admin.php and vars.php?
Last modified: August 18, 2016

---

# Errors in admin.php and vars.php?

 *  [sychosly](https://wordpress.org/support/users/sychosly/)
 * (@sychosly)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/errors-in-adminphp-and-varsphp/)
 * Yesterday I went and visited my blog. Everything seemed normal, I went to the
   admin section, and right in the top these errors are showing up:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/www/wp-includes/vars.php:2) in /var/www/wp-admin/admin.php on line 10
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/www/wp-includes/vars.php:2) in /var/www/wp-admin/admin.php on line 11
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/www/wp-includes/vars.php:2) in /var/www/wp-admin/admin.php on line 12
 * Warning: Cannot modify header information – headers already sent by (output started
   at /var/www/wp-includes/vars.php:2) in /var/www/wp-admin/admin.php on line 13
 * Any ideas? Should I replace teh vars.php file? The admin.php file? Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/errors-in-adminphp-and-varsphp/#post-276206)
 * It is always a wise thing to [search](http://search.wordpress.org/Cannot+modify+header+information+-+headers+already+sent)
   for the error message…
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/errors-in-adminphp-and-varsphp/#post-276207)
 * Download vars.php
    Open in Notepad make sute ther very first thing on the top
   line is
 * `<?php`
 * Nothing at all must be before that.
    While you are there, check that the absolute
   last thing in that file is
 * `?>`
 * with nothign at all after it – no carriage returns, no whitespace. Zilch 🙂
 * Then save and reupload.
 *  Thread Starter [sychosly](https://wordpress.org/support/users/sychosly/)
 * (@sychosly)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/errors-in-adminphp-and-varsphp/#post-276275)
 * I did search for the error messages and I didn’t find anything. I am not new 
   to searching, thanks for your concern.
 *  Thread Starter [sychosly](https://wordpress.org/support/users/sychosly/)
 * (@sychosly)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/errors-in-adminphp-and-varsphp/#post-276276)
 * Thank You Podz, seems as there was white space before the <?php, everything seems
   to be working fine now.
 * Thanks.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/errors-in-adminphp-and-varsphp/#post-276295)
 * _I did search for the error messages and I didn’t find anything_
 * Hmmm… In less polite places they’d say that’s a f!@#$ing lie! There are 1180 
   hits.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Errors in admin.php and vars.php?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/errors-in-adminphp-and-varsphp/#post-276295)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
