user2465708
user2465708

Reputation: 41

Dispatcher has detected a cyclic routing causing stability problems in phalcon

When i am trying to access any controller following error is coming.

My code is working fine in my local machine where Apache server is running.

When i am uploading same code in my server machine and try to use. Below given error is coming.

In my server NGINX web sever is running.

Dispatcher has detected a cyclic routing causing stability problems

#0 [internal function]: Phalcon\Mvc\Dispatcher->_throwDispatchException('Dispatcher has ...', 1)

#1 [internal function]: Phalcon\Dispatcher->dispatch()

#2 /home/vtermina/public_html/api/v2/public/index.php(31): Phalcon\Mvc\Application->handle()

#3 {main}

Upvotes: 2

Views: 2246

Answers (1)

yergo
yergo

Reputation: 4980

This error occurs in two cases:

  • you have declared two same named routes
  • you are dispatching actions from A to B to A couple of times.

If secont, it is possible that your NGNIX configuration prevets Phalcon from receiving full list of parameters. But it will be difficult to guess it out w/o any code and configuration.

Upvotes: 0

Related Questions