Hello,
I have the same error but the solution don't work for me.
I migrate my dev on an other folder. On the live site my module manager don't work with this error :
Compile Error: Cannot declare class *, because the name is already in use
The * is remplaced by many class...
thanks.
prestashop 1.7.8.7, php 7.4.30