The variable $message does not seem to be defined for all execution paths leading up to this point.