We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

(SOLVED) Paginator problem

I got a table with 500 records but when run i got a message erro.If i reduce de limit value it works fine, but if try to bring more results per page i got an php error and give me a bad gateway. However on php log i didnt get any memory exhaust.

$customer = \Model\customer::find();

    $paginator = new \Phalcon\Paginator\Adapter\Model(array(
        "data" => $customer,
        "limit" => 10,
        "page" => 2
    $page = $paginator->getPaginate();

any tips? I also tried the querybuilder with same problem.


I get this error on php-fpm

[15-Sep-2013 18:37:35] WARNING: [pool www] child 11176 exited on signal 4 (SIGILL - core dumped) after 27567.009692 seconds from start [15-Sep-2013 18:37:35] NOTICE: [pool www] child 21832 started


Hello its working now. just "re-cloned" the phalcon and installed it again. May a new build fix it? Not sure. Anyway its solved.



What version are you using? I've found some problem, 502 error when calling getPaginate()