illegal string offset warnings