total record are 18;
set page_limit = 17;
page->next always is 1..that is not correct.
What version are you using? What adapter are you using?
What paginator adapter are you using?
The same issue I have in version 1.3 using Phalcon\Paginator\Adapter\Model
When amount of records are 1 more than the limit, the next button stays on page 1