One of the reasons this error will show is if a not declared variable is used and is being incremented.