WordPress: Header Can't Contain More Than One Header

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.

 


  • 39 Users Found This Useful
Was this answer helpful?

Related Articles

How to make WordPress show as Secure in Google Chrome

In order to make your WordPress installation show as Secure in Google Chrome, you'll need ensure...

Temporary URLs in WordPress

To use your Temporary URL with a WordPress installation, you will need to edit the Windows Hosts...

WordPress Optimization

Optimizing your scripts can keep your server and website loading quickly for your visitors. These...

Changing the WordPress Directory

You may want to change the location of your WordPress blog after you have installed it. For...

Fixing the Internal Server Error in WordPress

There are a few possible causes of the 500 Internal Server Error. It is not always due to...