The controller for URI is not callable in Production version

Hi there:

(v2026.8)

I have a view and everything is working fine running in debug mode. But if I generate the Production version, I get a “500 internal error” and in the log I get:

request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The controller for URI "/VistaResumenMensualOperariosList" is not callable: Controller "PHPMaker2026\Semicom2026\VistaResumenMensualOperariosController" has required constructor arguments and does not exist in the container. Did you forget to define the controller as a service?" at ControllerResolver.php line 97 {"exception":"[object] (InvalidArgumentException(code: 0)

If you have generated the production version before and then added the view, you need to clear old cache for the production version. You may read Clearing Symfony Cache.

Hi:

You are right.

When I recreate the project, check the “Clear project folder” and I see in the console messages of clearing the cache, so I thougth it was enough.