# Fatal Error- Mautic crashes after submitting Form

**URL:** <https://forum.mautic.org/t/fatal-error-mautic-crashes-after-submitting-form/8753>\
**Category:** Product Support\
**Created:** [June 16, 2017, 6:42am UTC](https://forum.mautic.org/t/fatal-error-mautic-crashes-after-submitting-form/8753 "2017-06-16T06:42:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casinativo](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@casinativo](https://forum.mautic.org/u/casinativo)\
**Post date:** [June 16, 2017, 6:42am UTC](https://forum.mautic.org/t/fatal-error-mautic-crashes-after-submitting-form/8753/1 "2017-06-16T06:42:20Z")

</div>

Hi there!  
  
  
  
Whenever I submit a form on Mautic I get the following error:  
  
  
  
“”“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.  
  
System administrators, check server logs for errors.”"  
  
  
  
And these are the logs:  
  
  
  
[2017-06-13 10:59:00] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 10:59:00] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 10:59:00] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 11:50:14] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 11:50:14] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 11:50:14] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 11:58:11] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 11:58:11] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 11:58:11] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 14:07:55] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 14:07:55] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 14:07:55] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 19:28:45] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 19:28:45] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 19:28:45] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 19:36:32] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 19:36:32] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 19:36:32] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 19:36:46] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 19:36:46] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 19:36:46] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 17:45:10] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
  
[2017-06-13 17:45:10] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
[2017-06-13 17:45:10] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
  
  
  
----  
  
  
  
Do you guys have any idea of why this is?  
  
  
  
Thanks!

---

<div class="post-metadata">

**Author:** ![casinativo](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@casinativo](https://forum.mautic.org/u/casinativo)\
**Post date:** [June 16, 2017, 6:42am UTC](https://forum.mautic.org/t/fatal-error-mautic-crashes-after-submitting-form/8753/2 "2017-06-16T06:42:20Z")

</div>

Hi there!

Whenever I submit a form on Mautic I get the following error:

“”“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.  
System administrators, check server logs for errors.”"

And these are the logs:

[2017-06-13 10:59:00] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 10:59:00] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 10:59:00] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 11:50:14] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 11:50:14] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 11:50:14] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 11:58:11] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 11:58:11] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 11:58:11] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 14:07:55] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 14:07:55] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 14:07:55] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 19:28:45] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 19:28:45] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 19:28:45] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 19:36:32] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 19:36:32] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 19:36:32] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 19:36:46] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 19:36:46] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 19:36:46] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 17:45:10] mautic.ERROR: [MAIL ERROR] A subject is required. Log data: !! A subject is required. (code: 0) (send) [] []  
[2017-06-13 17:45:10] mautic.ERROR: PHP Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []  
[2017-06-13 17:45:10] mautic.ERROR: SymfonyComponentDebugExceptionFatalErrorException: Error: Call to a member function getLead() on null - in file /home/casinati/email/app/bundles/EmailBundle/Model/EmailModel.php - at line 1242 [] []

* * *

Do you guys have any idea of why this is?

Thanks!

---

<div class="post-metadata">

**Author:** ![casinativo](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@casinativo](https://forum.mautic.org/u/casinativo)\
**Post date:** [June 17, 2017, 4:56pm UTC](https://forum.mautic.org/t/fatal-error-mautic-crashes-after-submitting-form/8753/3 "2017-06-17T16:56:33Z")

</div>

ANyone knows something??

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [June 17, 2017, 5:35pm UTC](https://forum.mautic.org/t/fatal-error-mautic-crashes-after-submitting-form/8753/4 "2017-06-17T17:35:35Z")

</div>

this form have an action to send an email after submit the form? Is yes check the email that is send and confirm that have a Subject line text
