Upgrade Issue - Old controller does not exist

Hi

Upgraded and all went well - when generating files I get this

Running composer run-script routes --ansi…

PHPMaker2025\ukmb\RouteAttributes::dispatch
Class “PHPMaker2023\ukmb\Epsilon2Controller” does not exist
In RouteAttributes.php line 87:

then in red I get this

[TypeError]
PHPMaker2025\ukmb\RouteAttributes::getRoutes(): Return value must be of type ?Symfony\Component\Routing\RouteCollection, none returned

Help really appreciated

Kind Regards
John B

Apologies

Read the Upgrade instructions properly and all is fine

Kind Regards

John B

Since 2025.2.0, I got the same issue. Though I have found it is related to tables that I have deleted. My solution was that I restored the tables and did not generate them anymore. That solved my issue. Your issue might be different, but that was my experience.

1 Like

Do not mix old scripts generated by previous versions with new scripts generated by the latest version, you may delete all files from the project folder before generating new files.

1 Like