Order not placed: coercing to Unicode: need string or buffer, bool found