WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

whewn ever i try to login http://affiliatesurge.com.au/wp-admin/

i got "" Warning: Cannot modify header information - headers already sent by (output started at /home/affiliat/public_html/wp-config.php:1) in /home/affiliat/public_html/wp-includes/pluggable.php on line 881 ""

Error ... i already try removing spacing in wp-config and functions.php

share|improve this question
Disable your plugins one by one then switch to the default theme. Does that help you narrow it down? – s_ha_dum Nov 28 '12 at 5:53

You saved your wp-config.php with a Byte order mark (BOM). Save the file again without the BOM.

In Linux or Mac OS X open the file with Vim, enter …

:set nobomb

… and save it.

In Windows open it in Notepad++ and convert it to UTF-8 without BOM:

enter image description here

share|improve this answer
That is often the reason for having a few pixels of white space on top of the screen. Always check if your files are saved as UTF-8 without BOM. Be careful though - as long as you do not use any special characters like the German ö, your Editor can not tell if the file is saved as UTF-8 without BOM or as ANSI, as they are identical. The real trouble starts as soon as you use special characters, but your editor saves them as ANSI, even though you have all your other files as UTF-8. – fischi Nov 28 '12 at 7:56

Add this code in your WordPress' wp-config.php on the first line:

share|improve this answer
You should explain why... – brasofilo Oct 31 '13 at 9:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.