Skip to content


Warning: Cannot modify header information

Yesterday I was helping a reader solving his WordPress error, so I thought I might as well write an entry, just in case we all encounter this in the future. If you ever run across this error (or warning) in your WordPress with the message saying:

Warning: Cannot modify header information – headers already sent by (output started at //home/htdocs/wordpress/wp-config.php:1) in /home/htdocs/wordpress/wp-login.php on line 12

or something similar, chances are you have messed up your wp-config.php leaving some unnecessary spaces inside.

Solution

  1. Download your wp-config.php down via FTP (Edit directly if you have SSH access)
  2. Open wp-config with your favourite editor, and remove all spaces before “<?php” and after “?>wp-config.php

    wp-config.php

  1. Upload and replace.

You are adviced to make backup of any files you edited.

Republished by Blog Post Promoter

Posted in Wordpress, Wordpress Error.

Tagged with , , , .


4 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. Webmaster linked to this post on June 10, 2010

    Please e-mail me your contacts. I have a question webmaster@spottovo.ru” rel=”nofollow”>……

    Thank you!!!…

  2. ROBERTO linked to this post on July 4, 2010


    PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. No prescription drugs. Order pills online

    Buy:Actos.Valtrex.Lumigan.Zovirax.Petcam (Metacam) Oral Suspension.Synthroid.Prevacid.Mega Hoodia.Zyban.Accutane.Prednisolone.Arimidex.Human Growth Hormone.Nexium.Retin-A.100% Pure Okinawan Coral Calcium….

  3. MATTHEW linked to this post on September 6, 2010


    CheapTabletsOnline.Com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. High quality drugs. Buy pills online

    Buy:Female Pink Viagra.Nymphomax.Advair.SleepWell.Cozaar.Aricept.Acomplia.Seroquel.Buspar.Ventolin.Female Cialis.Amoxicillin.Benicar.Lipothin.Wellbutrin SR.Lipitor.Lasix.Zetia.Prozac.Zocor….

  4. BRUCE linked to this post on September 6, 2010


    CheapTabletsOnline.Com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription pills. Buy pills online

    Buy:Tramadol.Propecia.Viagra Super Force.Viagra Soft Tabs.Viagra Professional.Cialis Super Active+.Cialis Soft Tabs.Levitra.Super Active ED Pack.Cialis Professional.Maxaman.Viagra.Viagra Super Active+.Zithromax.Cialis.VPXL.Soma….



Some HTML is OK

or, reply to this post via trackback.