This seems like such an easy to comprehend error message - however, when I view the page in question, I cannot replicate the error.
The error line trigger is as follows:
if( $i && (($i+1)%$divideby) == 0 ) {
Clearly I am missing an isset() or !== but I am not sure which/where to put it?