that error has usually to do with some mistake with the code inside the required class.
For example if you mistype the namespace of the class or similar error.
As I can see Flow tries to load Bit\GkwIncidentSite\Bit\GkwIncidentSite\Command\GkwCommandController (note the double"Bit\GkwIncidentSite" ), but usually should be something like
thanks for your reply. I already noticed the doubled Vendor and Package path segments but have no clue why this happens. I have the same packages and configuration running properly on the dev system. Maybe something from the environment is causing it?
@robertobottoni unfortunately I have no clues what can cause that (no hints on the platforms you are deploying to) but mostly sure is that issue that causes your problem.
I know this is not a recent post, but it might help someone out there:
I ran into a similar problem. I’m almost positively sure that the reason is a change from psr-0 to psr-4 autoloading. When I moved my class folders from
flow/Packages/Sites/Vendor.Package/Classes/Vendor/Package/Controller
to
flow/Packages/Sites/Vendor.Package/Classes/Controller
Everything worked again.
My story was that the installation had two site packages, Neos.Demo and a custom site package.
To update the custom site package, I changed settings here and there to reflect the Neos.Demo settings. At that point I didn’t know the difference about psr-0 and psr-4, but I changed this in the composer.json file as well. Maybe that was a part of the reason why it now failed.
So everything worked okay until I removed the Neos.Demo package. Then bam! I got this error.