1

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

1
  • Disable your plugins one by one then switch to the default theme. Does that help you narrow it down?
    – s_ha_dum
    Commented Nov 28, 2012 at 5:53

2 Answers 2

3

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

1
  • 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
    Commented Nov 28, 2012 at 7:56
-1

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

ob_start();
error_reporting(0);
2
  • 2
    You should explain why...
    – brasofilo
    Commented Oct 31, 2013 at 9:24
  • Explaining why helps us understand the context and rationale.
    – Danger14
    Commented Jul 28, 2021 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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