Tyssen Posted April 8, 2022 Share Posted April 8, 2022 This relates specifically to a problem I'm having with the Template Engine Twig module by Wanze, but I feel like it's probably a more general problem that could occur with any module installed with Composer. Feel free to move it though. The full error message I'm getting on both front and backend is Quote Fatal Error: Cannot declare class ComposerAutoloaderInit2b4910144e3bc0b9eb76ddcf5c6a027c, because the name is already in use (line 5 of site/assets/cache/FileCompiler/vendor/composer/autoload_real.php) If I move the vendor folder above webroot, the composer error goes away but when I try to access a page on the front end, I (unsurprisingly) get: Quote Class 'Twig\Loader\FilesystemLoader' not found I've tried adding {# FileCompiler=0 #} to the end of the only twig template I have at the moment (which just has plain text in it). But I'm getting the composer error on both front and back end so I wouldn't think that would help anyway. I've also tried composer dump-autoload. So why is the vendor folder getting copied to the FileCompiler folder? And is there anything I can do to stop that happening? Or stop the class name clashes? Link to comment Share on other sites More sharing options...
opalepatrick Posted May 10, 2023 Share Posted May 10, 2023 I am getting this exact problem but for phpMailer using composer. Did you actually sort it out? Link to comment Share on other sites More sharing options...
Tyssen Posted May 10, 2023 Author Share Posted May 10, 2023 Sorry, my memory's not great and I have no idea which project this relates to now. Although it probably involved not using the module in the end and doing a more manual process. Link to comment Share on other sites More sharing options...
Manaus Posted February 27 Share Posted February 27 Had the same problem, solved by removing the ScheduleCloudBackups module. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now