S3-Uploads
S3-Uploads copied to clipboard
s3-uploads.php autloader is broken
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' );
}
YES!
Please @joehoyle
Just try to launch WP Shell with the plugin enabled and you'll see the error
Also the version number is not being bumped in the main plugin file in the last releases
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.