Message
foo
must be a positive integer
Explanation
This value must be an integer greater than zero. It can not be negative, or a decimal, or a fraction, or a string, or blank.
Solution
Make the specified value a positive integer.
Not clear? Disagree?
You might be able to find help in one of these fine resources.