We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

(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.



3.2k

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



3.2k
Accepted
answer

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

Thanks.

Hey,

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