Support » Fixing WordPress » 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


    Forum Moderator

    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 for the full details.

Viewing 1 replies (of 1 total)
  • The topic ‘fatal error export_headers function’ is closed to new replies.