Title: Parse error after migration
Last modified: August 21, 2016

---

# Parse error after migration

 *  [WonderOne](https://wordpress.org/support/users/wonderone/)
 * (@wonderone)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/parse-error-after-migration/)
 * We recently migrated our multisite installation to a new server. I have encountered
   a few different headers not sent errors in the backend and now twice the frontend
   has thrown a php parse error from wp-includes/class-http.php. When I inspected
   the file, the end of it had been cut off right in the middle of <?php declarations;
   hence the error. My solution for this (a stop gap really as it’s a live site)
   has been to simply overwrite the file from backup, however this will obviously
   be ongoing. The headers sent errors have not come back after being fixed, but
   the parse error has twice now and I expect will continue.
 * My guess is that we have a plugin attempting to write to this file and failing
   to complete. Has anyone encountered this before? We are using MANY plugins, so
   isolating it will be a challenge as I have no idea how to reproduce the error
   and therefore no way to check if it’s fixed.
 * Site is [http://legalnursenetwork.com](http://legalnursenetwork.com). I have 
   run securicheck scanner and it comes up clean.
 * Any insight into possible culprits would be appreciated before wiping all plugins
   and reinstalling all of them.

Viewing 1 replies (of 1 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 8 months ago](https://wordpress.org/support/topic/parse-error-after-migration/#post-4192777)
 * > My solution for this (a stop gap really as it’s a live site) has been to simply
   > overwrite the file from backup, however this will obviously be ongoing.
 * Why not just restore ALL the WP core files?
 * If it happens again, sadly you’ll have to turn off the plugins. FWIW, though,
   NO plugin should EVER write to any core files. I would grep the plugins folder
   for ‘class-http.php’ personally, see if it’s obvious.

Viewing 1 replies (of 1 total)

The topic ‘Parse error after migration’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 1 reply
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/parse-error-after-migration/#post-4192777)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
