We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

PHP Fatal error: Maximum execution time of 120 seconds exceeded in Controller

In my controller action i'm accesing some paramter which is set in the dispatcher using following code

$uid = $this->dispatcher->getParam("uid");

The php execution ends up in an infite loop if the paramter "uid" is not set in the dispatcher before using get.

Error: PHP Fatal error: Maximum execution time of 120 seconds exceeded in <Controller Class> on line 53

Could you show us the code for this method and the route for it?

Perhaps its some logic in your code or a method that is called before and has redirection in it?