How to turn off S3 storage?

Strange my reply below was deleted; so I am posting it again.

That error occurs when a string method is called on an object which is nil; and generally happens in Ruby when a string object is expected, but it is nil.

That is why that error occurs.