Skip to content
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

Installed 3.0.4 manual-install.zip: wp-cli crashed: Callable "S3_Uploads\\WP_CLI_Command" does not exist, and cannot be registered as wp s3-uploads. #585

Closed
garubi opened this issue Jul 7, 2022 · 4 comments

Comments

@garubi
Copy link

garubi commented Jul 7, 2022

I installed the v 3.0.4 manual-install.zip to upgrade from an old 2.0.0 release.
The plugin activate and runs ok but the wp-cli crashes with the following error:
Callable "S3_Uploads\WP_CLI_Command" does not exist, and cannot be registered as wp s3-uploads.

We are unable to run any wp-cli command, even the 'wp' itself. We always gat Callable "S3_Uploads\WP_CLI_Command" does not exist, and cannot be registered as wp s3-uploads.

Looking into other similar issues still open (see #573 , #528 , #530) and to PR #519 I solved editing /inc/namespace.php
moved the line require_once dirname( __DIR__ ) . '/vendor/autoload.php'; just below the require_once dirname( __DIR__ ) . '/vendor/autoload.php';
since is autoload.php that includes the wp-cli commands, we need to inlude it anyway, even if the S3 class is already loaded by others plugin.

But I'm not sure that this is teh right way to resolve.
Please take a look at PR #519 and if it's ok accept it and merge

Thank you

@gabriserra
Copy link

Same here. PR #519 fixes my issue. I cannot see any problem with it, so let's ask again maintainers to accept that PR

@nosilver4u
Copy link

Confirmed on a fresh install of both 3.0.4 and 3.0.3 using manual install, PR #519 worked for me also.

@MattWilliamsDev

This comment was marked as spam.

@rmccue
Copy link
Member

rmccue commented Jul 18, 2023

Thanks for the issue! We're going to remove this installation method to avoid problems like this, see #644.

@rmccue rmccue closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants