Uncaught Exception: Call to a member function getS3Trailer() on null