humanmade / S3-Uploads

The WordPress Plugin to Store Uploads on Amazon S3
1.95k stars 392 forks source link

S3_Uploads plugin activation issue #627

Closed ameeyswain closed 1 year ago

ameeyswain commented 1 year ago

Hi team, I am trying to update the plugin but it's throwing an error. We are using mu-plugins which has composer and has 'aws-sdk' package. Is there any work around to fix the issue ?

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

0 /wp-includes/class-wp-hook.php(308): S3_Uploads\init()

1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

2 /wp-includes/plugin.php(517): WP_Hook->do_action()

3 /wp-settings.php(486): do_action()

4 /wp-config.php(247): require_once('/wp...')

5 /wp-load.php(50): require_once('/wp...')

6 /wp-admin/admin-ajax.php(22): require_once('/wp...')

7 {main}`

Thanks Ameey Kumar

rmccue commented 1 year ago

If you're providing aws-sdk from another plugin, S3 Uploads must be installed via Composer in order to generate the correct autoloader.

ameeyswain commented 1 year ago

I have been trying to fix it by using the mu-plugins composer package but getting the same error again and again. could you please help us by providing step by step process to resolve the issue.

my composer running here on this path: wp-content/mu-plugins/composer/vendor/autoload.php

thanks!

rmccue commented 1 year ago

Per our support policy, we do not provide end-user support and cannot assist with debugging. If you're unable to debug this further yourself, consider an alternative solution like the excellent WP Offload Media.