# Numerous fatal php errors

**URL:** <https://forum.mautic.org/t/numerous-fatal-php-errors/14773>\
**Category:** Product Support\
**Created:** [June 14, 2020, 2:50pm UTC](https://forum.mautic.org/t/numerous-fatal-php-errors/14773 "2020-06-14T14:50:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [June 14, 2020, 2:50pm UTC](https://forum.mautic.org/t/numerous-fatal-php-errors/14773/1 "2020-06-14T14:50:02Z")

</div>

**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](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](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 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a9e5978733d5e961974020a0204a606bdac695ef.jpeg)

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [June 15, 2020, 11:29am UTC](https://forum.mautic.org/t/numerous-fatal-php-errors/14773/2 "2020-06-15T11:29:42Z")

</div>

Firstly I feel your pain. Secondly - is this a fresh install or something that went wrong after things were working.

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [June 15, 2020, 1:33pm UTC](https://forum.mautic.org/t/numerous-fatal-php-errors/14773/3 "2020-06-15T13:33:24Z")

</div>

An upgrade from 2.16.2 to 2.16.3 had failed so the server was rolled back via snapshot. Everything seemed ok. A campaign was sending overnight and these errors began to show in logs as cron job errors.  
Ran through recommendations listed in mautic documentation for upgrade issues to no avail. It was decided to restore the domain only (via plesk backup) and the errors persisted. We can continue to restore from older and older known working copies until we hit one that works but the preference is to fix whatever is causing this issue so we can then upgrade eventually to 3.0

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [June 15, 2020, 2:01pm UTC](https://forum.mautic.org/t/numerous-fatal-php-errors/14773/4 "2020-06-15T14:01:45Z")

</div>

Above my pay grade unfortunately. Would love to be able to help, only suggestion is a few more coffees and wait for someone a bit more technical to shed some light here.

Good luck
