April 30th, 2009 by Luis Alves

Problem with wordpress installation

Yesterday I lost a few hours of sleep trying to solve this fu***@@@ damn annoying problem with a Portuguese wordpress installation.

After the installation I got an error:

Warning: Cannot modify header information – headers already sent by (output started at /Users/Mac/Sites/wordpress/wp-config.php:1)

Now, there are a few ways all over the web to solve this… none of them worked for me, including the one displayed at the Codex Wordpress, but it might work for you, so you can check it in here

So what worked for me it was the following way:

1 – After you have the wp-config.php created, open it in a text editor that allows you to change the Encoding.

2- Cut all text.

3- Save the file empty

4- Re-open the file with another encoding… like ISO-8859-1 or other.

5- Now… a weird character will be display in the beginning

6- Erase the bastard!!!

7- Save the file empty

8- Re-open the file with UTF-8

9- Paste all the text

10 – Save the file

And that should take care of it…

Leave a Reply