7.0.9 Move site from one server to another, ERROR

I moved a site from one Nginx server to another Nginx server and when I went to access the site I get this fatal error:

Fatal error: Cannot re-assign auto-global variable _FILES in /var/www/inc/images.inc.php on line 227

Caches were cleared and template set to uni.

The code in question is:

function moveUploadedImage( $_FILES, $fname, $path_and_name, $maxsize='', $imResize='true' )
{
    global $max_photo_height;
    global $max_photo_width;

    $height = $max_photo_height;
    if ( !$height )
        $height = 400;
    $width = $max_photo_width;
    if ( !$width )
        $width = 400;

    if ( $maxsize && ($_FILES[$fname]['size'] > $maxsize || $_FILES[$fname]['size'] == 0) )
    {
        if ( file_exists($_FILES[$fname]['tmp_name']) )
        {
            unlink($_FILES[$fname]['tmp_name']);
        }
        return false;
    }
    else
    {
        $scan = getimagesize($_FILES[$fname]['tmp_name']);

        if ( ($scan['mime'] == 'image/jpeg' && $ext = '.jpg' ) ||
            ( $scan['mime'] == 'image/gif' && $ext = '.gif' ) ||
            ( $scan['mime'] == 'image/png' && $ext = '.png' ) ) //deleted .bmp format
        {

            $path_and_name .= $ext;
            move_uploaded_file( $_FILES[$fname]['tmp_name'], $path_and_name );
           
            if ( $imResize )
                imageResize( $path_and_name, $path_and_name, $width, $height );

        }
        else
        {
            return IMAGE_ERROR_WRONG_TYPE;
        }
    }

    return $ext;
}

I don't understand why the function is being called when I go to visit the site's home page

Geeks, making the world a better place
Quote · 15 Oct 2013

Dolphin 7.0.9 and lower doesn't play well with PHP 5.4 right out the gate.

 

http://www.boonex.com/trac/dolphin/ticket/2814

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 15 Oct 2013

Thanks Nathan, yes, the server is running PHP 5.4.0.

I did not think about that.

Geeks, making the world a better place
Quote · 15 Oct 2013

This is a disappointment.  I was trying to do some tests to see why a 7.0.9 site developed issues; trying to see if the server is at fault because I don't see anything else wrong with it.

Geeks, making the world a better place
Quote · 15 Oct 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.