"Undefined variable: callback" notice fix