$conn reported an error as undefined
Where is the code? Just say this. Who knows what you want to say
This means that this variable is not defined.