Upgraded to 7.10.22 LTS

When I try to send an email to contacts I get an error. I’ve deleted the email that I’m sending from & reinstalled the email that I’m sending from (but I didn’t do this for the system email). Here are the errors:

Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] fromUser: Conversion of 11/24/2019 05:22pm  from user format m/d/Y h:ia failed
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_IS_NOT_SET]
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_ADDR_IS_NOT_SET]
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROMNAME_IS_NOT_SET]
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_NAME_IS_NOT_SET]
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_ADDR_NAME_IS_EMPTY]
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Saving Email with invalid From name and/or Address. Details:





codes:1, 4, 7, 10, 14
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Unable to find relationship emails_email_templates
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Unable to find relationship emails_email_templates
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Unable to find relationship emails_email_templates
Sun Nov 24 17:22:40 2019 [12025][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Unable to find relationship emails_email_templates

I saw other people having this issue, but I couldn’t figure out what the fix is. Any ideas?

That label should be defined here

https://github.com/salesagility/SuiteCRM/blob/v7.10.22/modules/Emails/language/en_us.lang.php#L405

You might have this problem if you redefined (in custom) some language files before the upgrade, and didn’t merge in the differences.

Check to see if you have a file called

custom/modules/Emails/language/en_us.lang.php

I do not have: custom/modules/Emails/language/en_us.lang.php
I also do not have: custom/modules/Emails/language/

I just created: custom/modules/Emails/language/en_us.lang.php by using: github.com/salesagility/SuiteCRM/blob/v7.../en_us.lang.php

I still get the same errors.

I have done a couple of custom things, so I have added files in the custom folder, however, when I searched, there are a lot of folders named “language” and “Language” in the custom folder.

  1. How do I figure out which language folder may be causing the problem?
  2. Do I need to delete the custom/modules/Emails/language/en_us.lang.php that I created?

There’s no need to create

custom/modules/Emails/language/en_us.lang.php

if you don’t need it.

But you might want to check if what you have in

modules/Emails/language/en_us.lang.php

includes the label “ERR_FIELD_FROM_IS_NOT_SET”

But I am 99% sure you will find it there.

Can you turn on stack backtraces? I would like to see the stack of that error [FATAL] A language key does not found: [ERR_FIELD_FROM_IS_NOT_SET]

There are over tens of thousands of lines of code that are generated from this. I’ve copied a snippet close to that error. Do you need more than this:

Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1111]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1322]</font><font color="red">(cssmgr:_mergeFullCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:18293]</font><font color="red">(cssmgr:MergeCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15317]</font><font color="red">(mPDF:OpenTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: P>>ID>> occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line 1166 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1166]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1322]</font><font color="red">(cssmgr:_mergeFullCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:18293]</font><font color="red">(cssmgr:MergeCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15317]</font><font color="red">(mPDF:OpenTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: outline-s occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 4454 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:4454]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:5970]</font><font color="red">(mPDF:Cell)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:24208]</font><font color="red">(mPDF:finishFlowingBlock)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:21964]</font><font color="red">(mPDF:printbuffer)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15226]</font><font color="red">(mPDF:CloseTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: P occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line 1111 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1111]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1322]</font><font color="red">(cssmgr:_mergeFullCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:18293]</font><font color="red">(cssmgr:MergeCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15317]</font><font color="red">(mPDF:OpenTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: P>>ID>> occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line 1166 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1166]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1322]</font><font color="red">(cssmgr:_mergeFullCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:18293]</font><font color="red">(cssmgr:MergeCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15317]</font><font color="red">(mPDF:OpenTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: outline-s occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 4454 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:4454]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:5970]</font><font color="red">(mPDF:Cell)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:24208]</font><font color="red">(mPDF:finishFlowingBlock)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:21964]</font><font color="red">(mPDF:printbuffer)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15226]</font><font color="red">(mPDF:CloseTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: P occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line 1111 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1111]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1322]</font><font color="red">(cssmgr:_mergeFullCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:18293]</font><font color="red">(cssmgr:MergeCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15317]</font><font color="red">(mPDF:OpenTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: P>>ID>> occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b> on line 1166 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1166]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/classes/cssmgr.php</b></font><font color="blue">[L:1322]</font><font color="red">(cssmgr:_mergeFullCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:18293]</font><font color="red">(cssmgr:MergeCSS)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15317]</font><font color="red">(mPDF:OpenTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: outline-s occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 4454 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:4454]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:5970]</font><font color="red">(mPDF:Cell)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:24208]</font><font color="red">(mPDF:finishFlowingBlock)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:21964]</font><font color="red">(mPDF:printbuffer)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:15226]</font><font color="red">(mPDF:CloseTag)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:109]</font><font color="red">(mPDF:WriteHTML)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined property: mPDF::$hasOC occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 31965 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:31965]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:10495]</font><font color="red">(mPDF:_putresources)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:1928]</font><font color="red">(mPDF:_enddoc)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:8328]</font><font color="red">(mPDF:Close)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:115]</font><font color="red">(mPDF:Output)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: bpa occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 31587 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:31587]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:31989]</font><font color="red">(mPDF:_putpatterns)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:10495]</font><font color="red">(mPDF:_putresources)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:1928]</font><font color="red">(mPDF:_enddoc)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:8328]</font><font color="red">(mPDF:Close)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:115]</font><font color="red">(mPDF:Output)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: bpa occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 31587 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:31587]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:31989]</font><font color="red">(mPDF:_putpatterns)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:10495]</font><font color="red">(mPDF:_putresources)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:1928]</font><font color="red">(mPDF:_enddoc)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:8328]</font><font color="red">(mPDF:Close)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:115]</font><font color="red">(mPDF:Output)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined property: mPDF::$hasOC occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 32082 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:32082]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:10495]</font><font color="red">(mPDF:_putresources)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:1928]</font><font color="red">(mPDF:_enddoc)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:8328]</font><font color="red">(mPDF:Close)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:115]</font><font color="red">(mPDF:Output)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined property: mPDF::$hasOC occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 10391 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:10391]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:10522]</font><font color="red">(mPDF:_putcatalog)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:1928]</font><font color="red">(mPDF:_enddoc)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:8328]</font><font color="red">(mPDF:Close)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:115]</font><font color="red">(mPDF:Output)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Warning]</b>  opendir(/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/tmp): failed to open dir: No such file or directory occurred in <b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b> on line 8516 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b></b></font><font color="blue">[L:]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/modules/AOS_PDF_Templates/PDF_Lib/mpdf.php</b></font><font color="blue">[L:8516]</font><font color="red">(:opendir)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:115]</font><font color="red">(mPDF:Output)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined property: AOS_Invoices::$billing_contact_name occurred in <b>/var/www/html/custom/modules/AOS_Invoices/sendEmail.php</b> on line 63 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/sendEmail.php</b></font><font color="blue">[L:63]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:118]</font><font color="red">(customSendEmail:send_email)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined property: User::$default_team occurred in <b>/var/www/html/custom/modules/AOS_Invoices/sendEmail.php</b> on line 69 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/sendEmail.php</b></font><font color="blue">[L:69]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:118]</font><font color="red">(customSendEmail:send_email)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] fromUser: Conversion of 11/26/2019 08:40am  from user format m/d/Y h:ia failed
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_IS_NOT_SET]
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_ADDR_IS_NOT_SET]
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROMNAME_IS_NOT_SET]
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_NAME_IS_NOT_SET]
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] A language key does not found: [ERR_FIELD_FROM_ADDR_NAME_IS_EMPTY]
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Saving Email with invalid From name and/or Address. Details:





codes:1, 4, 7, 10, 14
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Unable to find relationship emails_email_templates
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Unable to find relationship emails_email_templates
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][ERROR] Unable to find relationship emails_email_templates
Tue Nov 26 08:40:04 2019 [12150][45b4002e-ccbc-7d02-65b8-58af13398c3e][FATAL] Catch an error: <b>[Notice]</b>  Undefined index: record occurred in <b>/var/www/html/custom/modules/AOS_Invoices/sendEmail.php</b> on line 98 [2019-11-26 08:40:04] 
Trace info:
<font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/sendEmail.php</b></font><font color="blue">[L:98]</font><font color="red">(:StackTraceErrorHandler)</font><br><font color="black"><b>/var/www/html/custom/modules/AOS_Invoices/generatePdf.php</b></font><font color="blue">[L:118]</font><font color="red">(customSendEmail:send_email)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:1020]</font><font color="red">(:require_once)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:468]</font><font color="red">(SugarController:handleEntryPoint)</font><br><font color="black"><b>/var/www/html/include/MVC/Controller/SugarController.php</b></font><font color="blue">[L:373]</font><font color="red">(SugarController:process)</font><br><font color="black"><b>/var/www/html/include/MVC/SugarApplication.php</b></font><font color="blue">[L:113]</font><font color="red">(SugarController:execute)</font><br><font color="black"><b>/var/www/html/index.php</b></font><font color="blue">[L:52]</font><font color="red">(SugarApplication:execute)</font><br>

If you set display_errors to false in your php.ini, and restart the web server, does it change anything?

Am I doing this & then turn on stack backtraces & then pasting the lines from the suitecrm.log?

Or are you saying to do this & see if the email works?

Sorry, I got distracted by those newer messages in your log and I didn’t realize this doesn’t seem connected to the previous messages in the thread.

So the AOS_PDF errors could go away with display_errors turned off. It would be interesting to see how this goes, at least so the log spam goes away and we can focus on any errors that remain.

What do you have in this file?

/custom/modules/AOS_Invoices/sendEmail.php

Some of the errors are coming from there, and it’s a custom file…

This is probably the culprit, because it is a custom email module. Is this breaking everything?

<?php

class customSendEmail{
	function send_email($module,$module_type,$printable,$file_name,$attach, $custom=false){
	
	require_once('modules/Emails/Email.php');
	global $current_user, $mod_strings, $sugar_config;
	
		//First Create e-mail draft
		$email = new Email();
		// set the id for relationships
		$email->id = create_guid();
		$email->new_with_id = true;
	
		$email->name = "Invoice : ".$module->name;

		$email->description_html = $module->description;

		if($custom){
			$emailtemplate = new EmailTemplate();
			$emailtemplate = $emailtemplate->retrieve_by_string_fields(array('name' => $printable ));
			if(!isset($emailtemplate->id) || empty($emailtemplate->id)){
				$GLOBALS['log']->fatal("Email Template ($printable) not found in SuiteCRM.");
			}else{
				$temp = array();
				$template_data = $emailtemplate->parse_email_template(
					array(
					   "subject" => $emailtemplate->subject,
					   "body_html" => $emailtemplate->body_html,
					   "body" => $emailtemplate->body
					),
				   	'AOS_Invoices',
				   	$module,
				   	$temp
			   	);
				$template_data['body_html'] = html_entity_decode($template_data["body_html"]);
				$template_data['body_html'] = str_replace('$$site_url$$', $sugar_config['site_url'], $template_data['body_html']);
				$template_data['body'] = str_replace('$$site_url$$', $sugar_config['site_url'], $template_data['body']);
				$template_data['body_html'] = str_replace('$$id$$', $module->id, $template_data['body_html']);
				$template_data['body'] = str_replace('$$id$$', $module->id, $template_data['body']);
			   	$email->name = $template_data['subject'];

				$email->description_html = $template_data["body_html"];
			}
		}	

		$email->type = "draft";
		$email->status = "draft";
	
		if(!empty($module->billing_contact_id) && $module->billing_contact_id!="")
            $contact_id = $module->billing_contact_id;
        else if(!empty($module->contact_id) && $module->contact_id!="")
            $contact_id = $module->contact_id;

            require_once('modules/Contacts/Contact.php');
            $contact = new Contact;
            if($contact->retrieve($contact_id)){
                $email->parent_type = 'Contacts';
                $email->parent_id = $contact->id;

                if(!empty($contact->email1)){
                    $email->to_addrs_emails = $contact->email1.";";
                    $email->to_addrs = $module->billing_contact_name." <".$contact->email1.">";
                }
            }

	
		//team id
		$email->team_id  = $current_user->default_team;
		//assigned_user_id
		$email->assigned_user_id = $current_user->id;
		//Save the email object
		global $timedate;
		$email->date_start = $timedate->to_display_date_time(gmdate($GLOBALS['timedate']->get_db_date_time_format()));
		$email->save(FALSE);
		$email_id = $email->id;
		
		if($attach)
		{
			$note = new Note();
			$note->modified_user_id = $current_user->id;
			$note->created_by = $current_user->id;
			$note->name = $file_name;
			$note->parent_type = 'Emails';
			$note->parent_id = $email_id;
			$note->file_mime_type = 'application/pdf';
			$note->filename = $file_name;
			$note->save();
			
			rename($sugar_config['upload_dir'].'attachfile.pdf',$sugar_config['upload_dir'].$note->id);
		}
	
		//redirect
		if($email_id=="") {
			echo "Unable to initiate Email Client";
			exit; 
		} else {
		header("Location: index.php?action=Compose&module=Emails&return_module=".$module_type."&return_action=DetailView&return_id=".$_REQUEST['record']."&recordId=".$email_id);
		}
	}
}
?>

You also have this file

/custom/modules/AOS_Invoices/generatePdf.php

which is the one calling the sendEmail.php file.

Ok, so you have custom code that’s broken. You need to complain to the add-on developer, or talk to whoever programmed that, and get it fixed? Or just find somebody with PHP skills to have a look…