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

Fatal error on plugin activation when manually installing #538

Open
henrywright opened this issue Jul 12, 2021 · 7 comments
Open

Fatal error on plugin activation when manually installing #538

henrywright opened this issue Jul 12, 2021 · 7 comments

Comments

@henrywright
Copy link

henrywright commented Jul 12, 2021

PHP Fatal error: Uncaught Error: Class 'S3_Uploads\Plugin' not found in wp-content/plugins/s3-uploads/inc/namespace.php:32

The steps I took were:

  1. I downloaded the 3.0.2 manual-install.zip
  2. I then visited Network Admin > Plugins
  3. I then clicked "Add New"
  4. I then clicked "Upload Plugin" and selected the zip from my computer
  5. I then clicked "Install Now"
  6. I renamed the installed manual-install plugin folder to s3-uploads
  7. I then clicked "Network Activate"
@henrywright
Copy link
Author

I did some digging and it seems a dependency requires PHP 7.2.5. The local install I used had PHP 7.0.33

@henrywright
Copy link
Author

Note though the PHP version issue isn't related to this fatal error

@rmccue
Copy link
Member

rmccue commented Jul 26, 2021

Hmm, this seems to indicate that the Composer autoloader hasn't been loaded correctly. Are you using manual-install while also using the AWS SDK elsewhere in your project?

@henrywright
Copy link
Author

Hi @rmccue. Yes, I'm using the aws-ses-wp-mail plugin and I'm sure it uses the SDK

@henrywright
Copy link
Author

@rmccue how would you use the manual install of aws-ses-wp-mail and s3-uploads together?

@djviruss
Copy link

djviruss commented Aug 6, 2021

Same Issue:
PHP Fatal error: Uncaught Error: Class 'S3_Uploads\Plugin' not found in /var/www/html/wp-content/plugins/manual-install-1/inc/namespace.php:32
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(303): S3_Uploads\init()
#1 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 /var/www/html/wp-includes/plugin.php(470): WP_Hook->do_action()
#3 /var/www/html/wp-settings.php(441): do_action()
#4 /var/www/html/wp-config.php(144): require_once('/var/www/html/w...')
#5 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...')
#6 /var/www/html/wp-login.php(12): require('/var/www/html/w...')
#7 {main}
thrown in /var/www/html/wp-content/plugins/manual-install-1/inc/namespace.php on line 32

@henrywright
Copy link
Author

#377 may solve this issue

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

3 participants