Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

update to v1.1.0,nginx 502 Bad Gateway

i used the zend debuger debug the process, in first route dispatcher , it works well.

when valiate the user, util code

return $this->forward('index/index');

above dispath i defind the basecontroller. in fact it is $this->dispatcher->forward(...);

then code second debug the volt defined, the nginx said "502 Bad Gateway"

    $di->set('voltService', function($view, $di) {

        $volt = new \Phalcon\Mvc\View\Engine\Volt($view, $di);

        $volt->setOptions(array(
                "compiledPath" => "../app/compiled-templates/",
                "compiledExtension" => ".php",
                "compiledSeparator" => "%",
        ));

        return $volt;
    });


84.8k

Is this problem happening only with 1.1.0?



12.5k

yes,olny v1.1.0 beta.before beta,v1.1.0 work well



12.5k

i downgrade the phalcon to v1.0.1 , it also work well.



84.8k
Accepted
answer

hey netstu, could you try again re-compiling 1.1.0?



12.5k

thanks phalcon, i update to 1.1.0 again and test it .

now , it works well.