Your software
My Mautic version is: 2.16.2
My PHP version is: 7.3
Your problem
My problem is: numerous fatal php errors and entire installation is 500 error when attempting to login.
These errors are showing in the log: PHP Warning: Cannot declare class
mod_fcgid: stderr: PHP Warning: Cannot declare class Symfony\Component\DependencyInjection\DefinitionDecorator, because the name is already in use in /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/dependency-injection/ChildDefinition.php on line 126, referer: https://hub.mautic-install.com/s/login
Apache error
2020-06-14 09:55:29
Warning
mod_fcgid: stderr: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Symfony\Component\DependencyInjection\ChildDefinition::setPrivate() - in file /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/dependency-injection/ChildDefinition.php - at line 33, referer: https://hub.mautic-install.com/s/login
Apache error
Symfony\Component\DependencyInjection\DefinitionDecorator, because the name is already in use in /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/dependency-injection/ChildDefinition.php on line 126
PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\DependencyInjection\ChildDefinition::setPrivate() in /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/dependency-injection/ChildDefinition.php:33
Stack trace:
#0 /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/swiftmailer-bundle/DependencyInjection/SwiftmailerExtension.php(402): Symfony\Component\DependencyInjection\ChildDefinition->__construct(‘swiftmailer.tra…’)
#1 /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/swiftmailer-bundle/DependencyInjection/SwiftmailerExtension.php(72): Symfony\Bundle\SwiftmailerBundle\DependencyInjection\SwiftmailerExtension->createChildDefinition(‘swiftmailer.tra…’)
#2 /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/swiftmailer-bundle/DependencyInjection/SwiftmailerExtension.php(57): Symfony\Bundle\SwiftmailerBundle\DependencyInjection\SwiftmailerExtension->configureMailer(‘default’, Array, Object(Symfony\Component\Depe in /var/www/vhosts/mautic-install.com/hub.mautic-install.com/vendor/symfony/dependency-injection/ChildDefinition.php on line 33
Steps I have tried to fix the problem: Cleared cache
Cursed under my breath, rebooted server, drank coffee