无法使用php将文件上传到S3

I had setup upload with php on s3 2 months ago but by a few days it seems that it isn't working anymore.

When I go on log I get this error:

PHP fatal error: Internal Zend error - Missing class information for in /app/GuzzleHttp/Psr7/Stream.php on line 11

I am using this sdk https://github.com/aws/aws-sdk-php/releases and this is how I'm using it:

    <?php



include 'functions.php';
require_once 'BusinessLogic/SimpleImage.php';
require_once 'BusinessLogic/Manager.php';
require 'aws-autoloader.php';

use BusinessLogic\SimpleImage;
use BusinessLogic\Manager;


sec_session_start(); 

$bucket = 'mybucketname';

$s3 = Aws\S3\S3Client::factory(array(
    'region' => 'eu-central-1',
    'version' => 'latest',
    )
);

if(!Manager::loginCheck()){
     header("Location: login.php");
}else {

    if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_FILES['file']) && $_FILES['file']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['file']['tmp_name'])) {
        $s3->upload($bucket, $_FILES['file']['name'], fopen($_FILES['file']['tmp_name'], 'rb'), 'public-read');
        $tempFile = "http://".$bucket.".s3.amazonaws.com/".$_FILES['file']['name'];          //3

    }


    //



}
?>