Mautic Community Forums

Mautic Error After Submit Form

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!


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!