It usually means you are calling a function with erroneous arguments. Make sure you are supplying the correct amount of arguments, as well as the correct type.