Skip to content

get_class() expects parameter 1 to be object, null given #132

@iredmedia

Description

@iredmedia

I'm getting this error in one of my environments but I can't figure out why. It doesn't fail on home/login, but my internal pages it does.

get_class() expects parameter 1 to be object, null given

Here is more of the stack!

in Attachment.php (line 388)
--
at HandleExceptions->handleError(2, 'get_class() expects parameter 1 to be object, null given', '/app/vendor/codesleeve/stapler/src/Attachment.php', 388, array())
at get_class(null)in Attachment.php (line 388)
at Attachment->getInstanceClass()in Stapler.php (line 177)
at Stapler::getS3ClientInstance(object(Attachment))in Storage.php (line 27)

Edit: If i change the env FILESYSTEM_DRIVER to filesystem from S3 it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions