Please provide a copy of the products_results.php page that displays this error.
I think the issue is with using "display all records" and it not defining the pagination variables since all records are displayed. Since you are displaying all records, you can probably delete the pagination section of the results page that should include the line with the error.