Title: fatal error export_headers function
Last modified: August 21, 2016

---

# fatal error export_headers function

 *  [AndyArcangeli](https://wordpress.org/support/users/andyarcangeli/)
 * (@andyarcangeli)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-export_headers-function/)
 * Hello Everyone,
    I have the following message while I try to move/install on 
   a new domain a web site already done. Once I’ve restore the database and move
   all the files through FTP I got the message “Fatal Error in mo.php file. Only
   variables can be passed by reference…(row number that refere to export_headers
   function) Someone knows I can I solve this problem?
 * This is the function I have in the mo.php file
 * function export_headers() {
    $exported = ”; foreach($this->headers as $header
   => $value) { $exported.= “$header: $value\n”; } return $exported; }
 * Thank you in advance

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-export_headers-function/#post-4860314)
 * Try re-uploading all files & folders – **except** the root wp-config.php & .htaccess
   files and the wp-content folder – from a **fresh** download of WordPress 3.5.1.
   Make sure that you delete the old copies of files & folder before uploading the
   new ones.
 * Why are you using an old copy of WordPress? Were you aware that your site is 
   currently running a very real risk of being hacked? You need to upgrade WordPress
   asap. As you have such an old version of WordPress, you will need to carry out
   a series of smaller manual upgrades. See [Upgrading_WordPress_Extended](http://codex.wordpress.org/Upgrading_WordPress_Extended)
   for the full details.

Viewing 1 replies (of 1 total)

The topic ‘fatal error export_headers function’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-export_headers-function/#post-4860314)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
