cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

ERR_EMPTY_RESPONSE on default module route

Open fridge opened this issue 13 years ago • 12 comments

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?

fridge avatar Aug 03 '13 16:08 fridge

Please try 1.2.2, it solves the issue.

ghost avatar Aug 03 '13 16:08 ghost

How can i update? I just try install from repo, or clone from GH, but I get 1.2.1 version

fridge avatar Aug 03 '13 16:08 fridge

git clone https://github.com/phalcon/cphalcon.git
cd cphalcon
git checkout 1.2.2
cd ext
phpize && ./configure && make
sudo make install

ghost avatar Aug 03 '13 16:08 ghost

Did it help?

ghost avatar Aug 04 '13 08:08 ghost

I just recompile. Its fix the problem, thx for fast help :)

fridge avatar Aug 04 '13 09:08 fridge

bug is back, now I have 1.2.2 and the same problem

fridge avatar Aug 08 '13 08:08 fridge

1.3.0 not fixed

fridge avatar Aug 08 '13 08:08 fridge

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

fridge avatar Aug 08 '13 09:08 fridge

Does the application crash?

ghost avatar Aug 08 '13 14:08 ghost

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.

fridge avatar Aug 08 '13 16:08 fridge

is posible to turn on some logs?

fridge avatar Aug 08 '13 16:08 fridge

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.

ghost avatar Aug 09 '13 09:08 ghost