Skip to content
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
Closed

Error 502 Bad Gateway when using Paginator getPaginate #1385

jimmycdinata opened this issue Oct 16, 2013 · 4 comments

Comments

@jimmycdinata
Copy link

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
Copy link

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
Copy link
Author

@sjinks
Building from ext/ folder solved the issues.

Thank you for pointing for re-building :)

@aniket310
Copy link

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

@trogwarz
Copy link

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants