New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 502 Bad Gateway when using Paginator getPaginate #1385

Closed
jimmycdinata opened this Issue Oct 16, 2013 · 4 comments

Comments

Projects
None yet
3 participants
@jimmycdinata

jimmycdinata commented Oct 16, 2013

Dear experts,

I found error 502 when using $paginator->getPaginate().

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

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

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 

Environment:

PHP Version 5.3.10
Nginx 1.1.19
Phalcon 1.2.3/1.2.4/1.3.0
FPM/FastCGI 

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

I've tried 1.2.4 and 1.3.0 branch, but the problem are still exist. I've tried solution on this thread http://forum.phalconphp.com/discussion/898/-solved-paginator-problem#C3876, but still no luck :(

Thank you.

Jim

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Oct 16, 2013

SIGILL means illegal instruction, that is, the compiled Phalcon used instructions your CPU does not support — it looks like gcc incorrectly determined the capabilities of your CPU.

Please try to build Phalcon manually (not using ./build/install):

# If your system is 32 bit:
cd build/32bits
# If your system is 64 bit:
cd build/64bits

phpize
./configure CFLAGS="-O2 -g -fomit-frame-pointer -DPHALCON_RELEASE"
make
sudo make install

and see if this solves the issue.

ghost commented Oct 16, 2013

SIGILL means illegal instruction, that is, the compiled Phalcon used instructions your CPU does not support — it looks like gcc incorrectly determined the capabilities of your CPU.

Please try to build Phalcon manually (not using ./build/install):

# If your system is 32 bit:
cd build/32bits
# If your system is 64 bit:
cd build/64bits

phpize
./configure CFLAGS="-O2 -g -fomit-frame-pointer -DPHALCON_RELEASE"
make
sudo make install

and see if this solves the issue.

@jimmycdinata

This comment has been minimized.

Show comment
Hide comment
@jimmycdinata

jimmycdinata Oct 16, 2013

@sjinks
Building from ext/ folder solved the issues.

Thank you for pointing for re-building :)

jimmycdinata commented Oct 16, 2013

@sjinks
Building from ext/ folder solved the issues.

Thank you for pointing for re-building :)

@aniket310

This comment has been minimized.

Show comment
Hide comment
@aniket310

aniket310 Sep 10, 2014

thanks for your valuable suggestion ............my problem is solved...

aniket310 commented Sep 10, 2014

thanks for your valuable suggestion ............my problem is solved...

@TrogWarZ

This comment has been minimized.

Show comment
Hide comment
@TrogWarZ

TrogWarZ Feb 25, 2016

@jimmycdinata, thank you. Fall in problem with ubuntu 12.04.5 and Phalcon 1.3.6, building from ext with your flags solve 502 errors.

TrogWarZ commented Feb 25, 2016

@jimmycdinata, thank you. Fall in problem with ubuntu 12.04.5 and Phalcon 1.3.6, building from ext with your flags solve 502 errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment