On all pages of the wiki when enabling the AWS extension I get this error at the very bottom of the page;
Exception encountered, of type "Aws\Common\Exception\InvalidArgumentException"
And then when attempting to upload I get this;
Could not create directory ‘mwstore://AmazonS3/local-public/2/26’.
My config is in this format;
require_once("$IP/extensions/AWS/AWS.php");
$wgFileBackends['s3'] = array(
'name' => 'AmazonS3',
'class' => 'AmazonS3FileBackend',
'lockManager' => 'nullLockManager',
'awsKey' => '****',
'awsSecret' => '****',
'awsRegion' => 'eu-west-1',
'containerPaths' => array(
'wiki_id-local-public' => 'https://publicbucketname.s3-website-eu-west-1.amazonaws.com/',
'wiki_id-local-thumb' => 'https://thumbbucketname.s3-website-eu-west-1.amazonaws.com/',
'wiki_id-local-deleted' => 'https://deletedbucketname.s3-website-eu-west-1.amazonaws.com/',
'wiki_id-local-temp' => 'https://tempbucketname.s3-website-eu-west-1.amazonaws.com/',
)
);
$wgLocalFileRepo = array(
'class' => 'LocalRepo',
'name' => 'local',
'backend' => 'AmazonS3',
'scriptDirUrl' => $wgScriptPath,
'scriptExtension' => $wgScriptExtension,
'url' => $wgScriptPath . '/img_auth.php',
'zone' => array(
'public' => array( 'container' => 'public' ),
'thumb' => array( 'container' => 'thumb' ),
'temp' => array( 'container' => 'temp' ),
'deleted' => array( 'container' => 'deleted' )
)
);