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

paginator error

Hi, I'm trying the paginator but getPaginate() method is not working!! My instance is EC2 from ElasticBeanstalk in VPC ,Amazon Linux, apache2.4., php5.5., phalcon1.2.6

$builder = $this->modelsManager->createBuilder()
    ->columns('id, name')
    ->from('Robots')
    ->orderBy('name');

>$paginator = new Phalcon\Paginator\Adapter\QueryBuilder(array(
    "builder" => $builder,
    "limit"=> 20,
    "page" => 1
));

$page = $paginator->getPaginate();

i did get this error:

[core:notice] [pid 2090] AH00052: child pid 690 exit signal Illegal instruction (4)

I tried phalcon "1.2.4" , "1.2.5" and "2.0.0", but error is still there

please help me....

It seems that it may be some compatabilities problem.. coz me on PHP 5.4.20 and phalcon 1.2.6-1.3.0 everything is ok..



881
edited Mar '14

ummm..... Can I get any core error messages from server ?

$paginator = new Phalcon\Paginator\Adapter\QueryBuilder(array( "builder" => $builder, "limit"=> 20, "page" => 1 ));

new Paginator() is working well but "$pagenator->getPaginate()" is not working.



881

thanx. i will try it!!

Try 1.3.0. While it hasn't been released, it is stable enough for development, and there are tons of fixes in it.