WordPress: Header Can't Contain More Than One Header Print

  • 39

Have you seen an error like this?

  • Warning: Header may not contain more than a single header, new line detected.

This is caused by there being a space after the home or site URL in the WP database. This can be corrected through the WordPress Dashboard or through directly modifying the WordPress database.



Fixing URLs With WordPress Dashboard

  1. In the WordPress Dashboard, select "Settings", then "General".
  2. Remove any spaces after the URLs in the "WordPress address" and "Site address" fields.
  3. Select "Save Changes".



Fixing URLs With phpMyAdmin

  1. In cPanel, find the Databases section and click on phpMyAdmin.
  2. Find the WordPress database from the list on the left.
  3. Select "wp_options" from the left menu.
  4. Find the records for "siteurl" and "home". Delete any spaces after the URLs.

 



Was this answer helpful?

« Back