No access to site after set S3 credentials

I can only reproduce this issue when enabling enable_s3_uploads.

I think this is what happened and which does result in an Oops screen:

  • you added s3 access key id and s3 secret access key
  • you configured an s3_upload_bucket
  • you enabled enable_3s_uploads
  • you set backup_location to s3
  • you had to set a s3_backup_bucket and you set it to the same bucket
  • this gives an error message You cannot use the same bucket for ‘s3_upload_bucket’ and ‘s3_backup_bucket’. Choose a different bucket or use a different path for each bucket.
  • you cleared s3_upload_bucket so you could use s3_backup_bucket
  • you did not turn off enable_s3_uploads

The bug is that enabling_s3_uploads requires an s3_upload_bucket, but emptying that setting while s3 uploads are still enabled crashes the forum.