Fatal error: Class 'Aws\S3\Sync\UploadSyncBuilder' not found #100

korrio opened this Issue May 24, 2016 · 5 comments


None yet

5 participants

korrio commented May 24, 2016

this happen when i type
wp s3-uploads upload-directory videos --allow-root

PierreLvx commented Sep 5, 2016 edited

Same issue here, with the following :

wp s3-uploads upload-directory ./wp-content/uploads/media/file/diapo/ s3://REDACTED/uploads/media/file/diapo/

FWIW, php -v gives :

PHP 5.6.25-2+deb.sury.org~xenial+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

UPDATE : I ended up removing the extends statement in class-s3-uploads-uploadsyncbuilder.php and it's now uploading to S3.

joehoyle commented Oct 8, 2016

Hmm interesting, are either of you using the aws-sdk elsewhere in your codebases and therefor have an additional copy?



elvismdev commented Oct 19, 2016 edited

Same problem here, I just cloned this repo and started to upload all my /wp-content/uploads folder. But when trying the upload-directory command to upload subdirectories within this one I get the same error.

Fatal error: Class 'Aws\S3\Sync\UploadSyncBuilder' not found

As @PierreLvx did, removing the statement extends Aws\S3\Sync\UploadSyncBuilder from class-s3-uploads-uploadsyncbuilder.php made it work.

@joehoyle joehoyle was assigned by rmccue Oct 19, 2016

Since there isn't even a class called UploadSyncBuilder in this plugin it seems like extends Aws\S3\Sync\UploadSyncBuilder should be removed permanently.

@pramanikshreya pramanikshreya added a commit to RenderbitTechnologies/S3-Uploads that referenced this issue Jan 27, 2017
@pramanikshreya pramanikshreya Remove reference to Aws\S3\Sync\UploadSyncBuilder, fixes #100 7359996
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment