Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Collection tag throws error when using pagination and no entries and no limit set #1564

Closed
anthubbard opened this issue Aug 23, 2017 · 1 comment

Comments

@anthubbard
Copy link

anthubbard commented Aug 23, 2017

As it says, if there is a collection with no entries, and with pagination set, and no limit set on the loop it throws an error:

ErrorException in CollectionTags.php line 489:
Division by zero

This isn't so much a bug, as a need to update the docs and specify that limit="x" is required when using pagination.

On 1.6.4 but probably earlier versions also.

@pinkahd
Copy link

pinkahd commented Mar 19, 2018

This issue still occurs in Statamic version 2.8.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants