Title: Moved WP getting header error?
Last modified: August 20, 2016

---

# Moved WP getting header error?

 *  Resolved [ryan1988](https://wordpress.org/support/users/ryan1988/)
 * (@ryan1988)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moved-wp-getting-header-error/)
 * Hi there,
 * I have recently moved wordpress from my previous host to the new host. On the
   old host the website functions perfectly. Before moving it I changed the URL 
   to my new URL. I saved all files from filezilla from my old host onto my desktop.
 * I then edited the wp-config file to the new SQL database details.
 * I also exported the SQL tables via phpmyadmin from my last host and saved that
   file to my desktop.
 * Now the website displays perfectly and all of the links work but this is the 
   header errors I get which then mean I can’t login??
 * ———————–ERRORS———————–
    Warning: Cannot modify header information – headers already
   sent by (output started at /homepages/28/d385962101/htdocs/wp-content/plugins/
   nextgen-gallery/lib/ngg-db.php:2128) in /homepages/28/d385962101/htdocs/wp-login.
   php on line 349
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/28/d385962101/htdocs/wp-content/plugins/nextgen-gallery/lib/ngg-
   db.php:2128) in /homepages/28/d385962101/htdocs/wp-login.php on line 361
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/28/d385962101/htdocs/wp-content/plugins/nextgen-gallery/lib/ngg-
   db.php:2128) in /homepages/28/d385962101/htdocs/wp-includes/pluggable.php on 
   line 669
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/28/d385962101/htdocs/wp-content/plugins/nextgen-gallery/lib/ngg-
   db.php:2128) in /homepages/28/d385962101/htdocs/wp-includes/pluggable.php on 
   line 670
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/28/d385962101/htdocs/wp-content/plugins/nextgen-gallery/lib/ngg-
   db.php:2128) in /homepages/28/d385962101/htdocs/wp-includes/pluggable.php on 
   line 671
 * Warning: Cannot modify header information – headers already sent by (output started
   at /homepages/28/d385962101/htdocs/wp-content/plugins/nextgen-gallery/lib/ngg-
   db.php:2128) in /homepages/28/d385962101/htdocs/wp-includes/pluggable.php on 
   line 866
    ——————————————————-
 * I presume this has something to do with nextGen gallery plugin. How could I fix
   this without loosing my photographs that are on the site ect?
 * Hope to hear back soon, thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [ryan1988](https://wordpress.org/support/users/ryan1988/)
 * (@ryan1988)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/moved-wp-getting-header-error/#post-2697585)
 * Right folks!!! SOLVED!!!!!
 * Okay got it on my own. Look at the error in particular the bit where it says 
   already sent at wp-content/plugins/something.php:700
 * Okay this error seems to be cause by moving files in FTP which for some reason
   creates whitespace AFTER THE PHP ?> tags at the end of the files as shown in 
   the errors you get.
 * SO!!
 * Simply go through each file and remove the space after the closing PHP tag like
   this:
 * \E.G
 * 10.
    11.//end of program 12.?> 13. 14. 15.
 * In the example above I had three blank spaces. Just remove them in any affected
   file and behold all will be sorted.
 * Cheers
    Ryan Northern Ireland
 *  [Shaun Scovil](https://wordpress.org/support/users/sscovil/)
 * (@sscovil)
 * [14 years ago](https://wordpress.org/support/topic/moved-wp-getting-header-error/#post-2698016)
 * Awesome! Thanks Ryan!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Moved WP getting header error?’ is closed to new replies.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [header error](https://wordpress.org/support/topic-tag/header-error/)
 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Shaun Scovil](https://wordpress.org/support/users/sscovil/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/moved-wp-getting-header-error/#post-2698016)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
