New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
korrio opened this Issue May 24, 2016 · 12 comments

Comments

Projects
None yet
@korrio

korrio commented May 24, 2016

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

@PierreLvx

This comment has been minimized.

Show comment
Hide comment
@PierreLvx

PierreLvx Sep 5, 2016

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.

PierreLvx commented Sep 5, 2016

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

This comment has been minimized.

Show comment
Hide comment
@joehoyle

joehoyle Oct 8, 2016

Member

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

Member

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?

@PierreLvx

This comment has been minimized.

Show comment
Hide comment

Negative

@elvismdev

This comment has been minimized.

Show comment
Hide comment
@elvismdev

elvismdev Oct 19, 2016

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.

elvismdev commented Oct 19, 2016

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.

@jakejackson1

This comment has been minimized.

Show comment
Hide comment
@jakejackson1

jakejackson1 Dec 29, 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.

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 added a commit to RenderbitTechnologies/S3-Uploads that referenced this issue Jan 27, 2017

@KyleAtDND

This comment has been minimized.

Show comment
Hide comment
@KyleAtDND

KyleAtDND Mar 22, 2017

Please merge the commit to fix ;)

Please merge the commit to fix ;)

@albertosoho

This comment has been minimized.

Show comment
Hide comment
@albertosoho

albertosoho Jul 10, 2017

Same issue here migrate-attachments works fine, but upload-directory throws

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

Same issue here migrate-attachments works fine, but upload-directory throws

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

@rmccue

This comment has been minimized.

Show comment
Hide comment
@rmccue

rmccue Mar 16, 2018

Member

@joehoyle Did we ever fix this?

Member

rmccue commented Mar 16, 2018

@joehoyle Did we ever fix this?

@dingo-d

This comment has been minimized.

Show comment
Hide comment
@dingo-d

dingo-d Apr 10, 2018

Nope, you didn't ;) My plugin stopped working and I got the same error as the above. The aws-sdk-php v3 doesn't have Aws\S3\Sync\UploadSyncBuilder class. They changed the entire namespace substantially.

I can remove or comment out that line, but will this break the plugin functionality? I haven't looked that in depth in it.

dingo-d commented Apr 10, 2018

Nope, you didn't ;) My plugin stopped working and I got the same error as the above. The aws-sdk-php v3 doesn't have Aws\S3\Sync\UploadSyncBuilder class. They changed the entire namespace substantially.

I can remove or comment out that line, but will this break the plugin functionality? I haven't looked that in depth in it.

@mclucario

This comment has been minimized.

Show comment
Hide comment
@mclucario

mclucario Apr 10, 2018

@dingo-d It doesn't break. The class seems to be unneeded, at least the migration worked the last time I used it.

@dingo-d It doesn't break. The class seems to be unneeded, at least the migration worked the last time I used it.

@Arrig0

This comment has been minimized.

Show comment
Hide comment
@Arrig0

Arrig0 May 2, 2018

I confirm, It doesn't break.

Arrig0 commented May 2, 2018

I confirm, It doesn't break.

@dingo-d

This comment has been minimized.

Show comment
Hide comment
@dingo-d

dingo-d May 2, 2018

@joehoyle @rmccue Any news on the possible fix? If you accept PRs I'll see what I can do, since I'm currently working a lot with aws-sdk-php

dingo-d commented May 2, 2018

@joehoyle @rmccue Any news on the possible fix? If you accept PRs I'll see what I can do, since I'm currently working a lot with aws-sdk-php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment