ERR_EMPTY_RESPONSE on default module route
Hi, problem is strange, I create some app based on https://github.com/mruz/base-app. Everything ok, but on beckend module "/admin" server sometimes response ERR_EMPTY_RESPONSE error. Then when I refresh page, sometimes I get fully rendered templete with no error.
First I installed version 1.2.1 on windows 7(64bit) machine, and all time was something wrong. next I downgrade to 1.2.0 and problem is gone.
On my Debian 6(64bit), first I installed from repo ver1.2.1, and the same problem apeared. Next I compiled, and thats do not fix the problem.
Is the some way to install on my debian version 1.2.0? how can I download this version, or fix the problem?
Any suggestions?
Please try 1.2.2, it solves the issue.
How can i update? I just try install from repo, or clone from GH, but I get 1.2.1 version
git clone https://github.com/phalcon/cphalcon.git
cd cphalcon
git checkout 1.2.2
cd ext
phpize && ./configure && make
sudo make install
Did it help?
I just recompile. Its fix the problem, thx for fast help :)
bug is back, now I have 1.2.2 and the same problem
1.3.0 not fixed
if I test routings by the code:
$testRoutes = array(
'/',
'/admin',
'/admin/',
'/admin/index',
'/admin/product',
);
$router = new \Phalcon\Mvc\Router();
//Add here your custom routes
//...
//Testing each route
foreach ($testRoutes as $testRoute) {
//Handle the route
$router->handle($testRoute);
echo 'Testing ', $testRoute, '<br>';
//Check if some route was matched
if ($router->wasMatched()) {
echo 'Controller: ', $router->getControllerName(), '<br>';
echo 'Action: ', $router->getActionName(), '<br>';
} else {
echo 'The route wasn\'t matched by any route<br>';
}
echo '<br>';
I get: Testing / The route wasn't matched by any route
Testing /admin Controller: admin Action:
Testing /admin/ Controller: admin Action:
Testing /admin/index Controller: admin Action: index
Testing /admin/product Controller: admin Action: product
Does the application crash?
if I put die('###');, always I get ### on screen, but without die, I alwayes get ERR_EMPTY_RESPONSE
If I disable view I get normally empty view, where I can print some strings.
I think its crash. I search something in logs, apache logs is clear.
is posible to turn on some logs?
You can check /var/log/messages, /var/log/kern.log or /var/log/syslog. If this is a crash, you will see a message about segfault in php.