fatal error export_headers function (2 posts)

  1. AndyArcangeli
    Posted 1 year ago #

    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

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic