have you checked for deprecation errors? Most likely, the "function" model you're trying to implement has been.