If you have enabled LiveDev on Cloud environment, you can sometimes get this Fatal Error:
Fatal error: Cannot declare class ComposerAutoloaderInit7ad40f9888960c6ab0a01aceea0c4bd8, because the name is already in use in /mnt/www/html/.../vendor/composer/autoload_real.php on line 5
This might happen because the autoload_real.php file should be referred from the
livedev directory as :
There are two possible ways to resolve this:
- Regenerating the vendor directory:
rm -rf vendor composer update --lock
- In some cases, we have observed a similar issue due to SimpleSAMLphp Authentication module. If possible, disable this module and that may resolve the issue.