S3-Uploads icon indicating copy to clipboard operation
S3-Uploads copied to clipboard

s3-uploads.php autloader is broken

Open allenday opened this issue 7 months ago • 1 comments

file contents should be:

<?php

/*
Plugin Name: S3 Uploads
Description: Store uploads in S3
Author: Human Made Limited
Version: 3.0.3
Author URI: https://hmn.md
*/

// Load autoloader FIRST
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
    require_once __DIR__ . '/vendor/autoload.php';
}

require_once __DIR__ . '/inc/namespace.php';

add_action( 'plugins_loaded', 'S3_Uploads\\init', 0 );

if ( defined( 'WP_CLI' ) && WP_CLI ) {
	WP_CLI::add_command( 's3-uploads', 'S3_Uploads\\WP_CLI_Command' );
}

allenday avatar Jun 04 '25 04:06 allenday

YES!

leogermani avatar Jun 04 '25 18:06 leogermani

Please @joehoyle

Just try to launch WP Shell with the plugin enabled and you'll see the error

leogermani avatar Jun 23 '25 20:06 leogermani

Also the version number is not being bumped in the main plugin file in the last releases

leogermani avatar Jun 23 '25 20:06 leogermani

Per the readme, we only support installation via Composer, and it's your responsibility to load the autoloader:

Note: Composer's autoloader must be loaded before S3 Uploads is loaded. We recommend loading it in your wp-config.php before wp-settings.php is loaded as shown below.

rmccue avatar Jul 07 '25 13:07 rmccue