• Hi Guys,

    I’ve been using the Offload S3 plugin and it’s been working great. However, I found it wasn’t working for some of my posts, so I went into the settings page and this is what I found:

    Fatal error: Call to undefined method Aws\Common\Exception\TransferException::getExceptionCode() in /Users/grantmcgovern/Sites/TLAS/wp-content/plugins/amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php on line 1666

    Here’s what it looks like: Preview Image

    Any help would be greatly appreciated. Thanks.

    https://wordpress.org/plugins/amazon-s3-and-cloudfront/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor A5hleyRich

    (@a5hleyrich)

    We have a fix for this in the next release, however, in the meantime you can replace the line with:

    if ( ! $e instanceof Aws\Common\Exception\ServiceResponseException || 'AccessDenied' !== $e->getExceptionCode() ) {

    I’m guessing you will still have issues connecting to S3 though, as TransferException errors are usually indicative of cURL errors.

    Thread Starter g12mcgov

    (@g12mcgov)

    Yes, that led to me now getting this error. Is there any fix to this? Seems like it’s an included certificate within the plugin.

    There was an error attempting to check the permissions of the bucket tlas-bucket: [curl] 77: SSL: can't load CA certificate file /Users/grantmcgovern/Sites/TLAS/wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Http/Resources/cacert.pem [url] https://tlas-bucket.s3.amazonaws.com/~mcgoverg/TLAS/wp-content/uploads/as3cf-permission-check.txt

    Thanks.

    Plugin Contributor A5hleyRich

    (@a5hleyrich)

    Can you check whether the file exists and if it has the correct permissions?

    Thread Starter g12mcgov

    (@g12mcgov)

    Just checked. There’s no /Resources directory under Guzzle/Http.

    Plugin Contributor A5hleyRich

    (@a5hleyrich)

    That’s where the problem lies then. That directory and the certificate are included within the Amazon SDK. Can you try reinstalling or manually copying the certificate?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Suddenly getting Fatal Error: Call to undefined method Aws\Common, etc…?’ is closed to new replies.