TypeError thrown

call_user_func(): Argument #1 ($callback) must be a valid callback, no array or string given