After some testing I found out that there will be an infinite loop when running the forward function (or maybe something else) which causes the php script to terminate because of the maximum execution time.
It just happens when I want to forward to a module’s IndexController to the action Index from outside the module:
CController::forward('/dashboard/index/index'); // Dashboard is the module name
I had to change it to the following as a fix:
CController::forward('/dashboard/main/index'); // Dashboard is the module name
Maybe I’m doing something wrong, but I found the shortfix for me. But actually I want to call the controller IndexController instead of MainController but that’s just my OCD that wants it