Illegal string offset 'status'