Not a bug Xenforo AWS s3 don't work on xenforo v2.2.5

Not open for further replies.


Affected version
I'm new to xenforo. I have a client and his website uses xenforo v2.2.5 and he asked me to set up aws s3 for him. I've followed this post but it is not working. Every time I set up it doesn't let me log in to the admin panel. Here is the config.php source code that I'm using:


$config['db']['host'] = '********';
$config['db']['port'] = '********';
$config['db']['username'] = '********';
$config['db']['password'] = '********';
$config['db']['dbname'] = '********';

$config['fullUnicode'] = true;

$s3 = function()
   return new \Aws\S3\S3Client([
      'credentials' => [
         'key' => '***********************',
         'secret' => '***********************************'
      'region' => 'us-east-2',
      'version' => 'latest',
      'endpoint' => ''

$config['fsAdapters']['data'] = function() use($s3)
   return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), '', 'data');

$config['externalDataUrl'] = function($externalPath, $canonical)
   return '' . $externalPath;

$config['fsAdapters']['internal-data'] = function() use($s3)
   return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), '', 'internal_data');

And also if I put return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), 'bucket_name', 'data'); as mentioned in the docs it gives a 500 Server Error. So I'm using return new \League\Flysystem\AwsS3v3\AwsS3Adapter($s3(), '', 'data');

And on the admin login page, I get this error:

So, I'm really hoping if anyone can help me.
Support can only be provided to licensed customers or associated users.

You can ask your client to add you to their account which will provide access to the support forums.
Not open for further replies.
Top Bottom