Email body text not displaying in SuiteCRM mail client

Bit of a weird one this. For no reason at all, email is no longer rendering correctly in the SuiteCRM mail window (see image below). I can still import email using the top pane however. Stranger still, once imported, the text of email can be read on the record it was imported to.

I’ve also checked the suite crm.log file which has a number of errors as follows:

Sun Apr 29 15:59:02 2018 [19362][1][DEPRECATED] Formatting correction: SchedulersJobs->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Sun Apr 29 15:59:02 2018 [19362][1][DEPRECATED] Formatting correction: SchedulersJobs->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Sun Apr 29 15:59:02 2018 [19362][1][DEPRECATED] Formatting correction: SchedulersJobs->execute_time had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Sun Apr 29 15:59:02 2018 [19362][1][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image icon_Administration_32.png not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image icon_Administration_32.png not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Contact_Vcard.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Lead_Vcard.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Email_Templates.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Create_Email_Templates.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Email_Templates.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Diagnostics.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Person_Form.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Meeting.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Call.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Today.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Call.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Meeting.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Resource_Chart.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Project_Tasks.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Create_Email_Templates.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Email_Templates.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Diagnostics.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Person_Form.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Call.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Meeting.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Resource_Chart.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Project_Tasks.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Process_Audit.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Security_Group.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Role_Management.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Sun Apr 29 15:59:02 2018 [6490][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found

The missing files are indeed missing. There is no Create.gif file at /themes/Suite7/images - but there is a create.gif.

Really stumped by this now. Currently running version 7.8.18

Please help.

Hi,
Can you please re-set the server permission after doing Quick Repair and Rebuild.
After doing so, please remember to Delete “Cached Images and Files” saved in your browser History/Cache by the command

CTRL+ Shift + Delete

And please also check PHP Error Logs.

Hopefully this all will help you.

Thanks

Thanks for the suggestions suite crm_developer - sadly none of them made any difference.

I’ve just checked the Apache2 log which shows the following errors after trying to load an email:


[Mon Apr 30 09:46:58.748323 2018] [:error] [pid 1116] [client 192yyy61610] PHP   1. {main}() /var/www/crm2015/index.php:0, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748326 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   2. SugarApplication->execute() /var/www/crm2015/index.php:52, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748329 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   3. SugarController->execute() /var/www/crm2015/include/MVC/SugarApplication.php:105, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748332 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   4. SugarController->processView() /var/www/crm2015/include/MVC/Controller/SugarController.php:318, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748334 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   5. ViewClassic->process() /var/www/crm2015/include/MVC/Controller/SugarController.php:371, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748336 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   6. ViewClassic->display() /var/www/crm2015/include/MVC/View/SugarView.php:169, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748339 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   7. ViewClassic->includeClassicFile() /var/www/crm2015/include/MVC/View/views/view.classic.php:74, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748341 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   8. include_once() /var/www/crm2015/include/MVC/View/SugarView.php:777, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748343 2018] [:error] [pid 1116] [client 192yyy:61610] PHP   9. EmailUI->displayEmailFrame() /var/www/crm2015/modules/Emails/index.php:52, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d
[Mon Apr 30 09:46:58.748345 2018] [:error] [pid 1116] [client 192yyy:61610] PHP  10. EmailUI->_generateComposeConfigData() /var/www/crm2015/modules/Emails/EmailUI.php:141, referer: http://xxx/index.php?module=Opportunities&offset=19&stamp=1525019213086585800&return_module=Opportunities&action=DetailView&record=64200c0d-a7fc-bda7-ae4d-5a82a25ccc3d

(Note that I have obfuscated addresses for obvious reasons).

I have no idea what I am looking at here.

Hi,
This is something like access logs. Nothing special.

Was that feature crashed from the beginning of time? How it got crashed?

That Apache log is missing the actual error, which should be above the first line you copied here. The format of that log is


Error text
1. Call stack
2. Call stack
3. Call stack
4. Call stack
5 ...

Please copy the entire thing so we can look at the error. Thanks

Is this what you mean?


[Mon Apr 30 14:56:15.043551 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP Stack trace:, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043554 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   1. {main}() /var/www/crm2015/index.php:0, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043556 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   2. SugarApplication->execute() /var/www/crm2015/index.php:52, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043558 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   3. SugarController->execute() /var/www/crm2015/include/MVC/SugarApplication.php:105, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043560 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   4. SugarController->processView() /var/www/crm2015/include/MVC/Controller/SugarController.php:318, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043563 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   5. ViewClassic->process() /var/www/crm2015/include/MVC/Controller/SugarController.php:371, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043565 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   6. ViewClassic->display() /var/www/crm2015/include/MVC/View/SugarView.php:169, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043567 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   7. ViewClassic->includeClassicFile() /var/www/crm2015/include/MVC/View/views/view.classic.php:74, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043569 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   8. include_once() /var/www/crm2015/include/MVC/View/SugarView.php:777, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7
[Mon Apr 30 14:56:15.043571 2018] [:error] [pid 5514] [client 192.168.1.1:51643] PHP   9. InboundEmail->displayFolderContents() /var/www/crm2015/modules/Emails/EmailUIAjax.php:844, referer: http://blloyd.ddns.net/crm2015/index.php?action=Compose&module=Emails&return_module=AOS_Invoices&return_action=DetailView&return_id=&recordId=4b9b566f-9f37-3acb-cd46-5ae71e5b51f7

Sorry, give me one more line before that :slight_smile: at least I was expecting to see one of those errors saying “FATAL: some cause / at some file / at some line.”

Maybe the best way is to see where the previous stack trace ends (line starting with numbers) and get whatever comes afterwards.

I’ve -tail the last 250 lines of the log file, but the same error seems to appear over and over again - none of them FATAL. This is the output of the two most recent stack traces:


[Mon Apr 30 19:12:12.691310 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP Warning:  Declaration of SugarWidgetSubPanelEmailLink::displayList(&$layout_def) should be compatible with SugarWidgetField::displayList($layout_def) in /var/www/crm2015/include/generic/SugarWidgets/SugarWidgetSubPanelEmailLink.php on line 0, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691330 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP Stack trace:, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691334 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   1. {main}() /var/www/crm2015/index.php:0, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691338 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   2. SugarApplication->execute() /var/www/crm2015/index.php:52, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691340 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   3. SugarController->execute() /var/www/crm2015/include/MVC/SugarApplication.php:105, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691343 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   4. SugarController->processView() /var/www/crm2015/include/MVC/Controller/SugarController.php:318, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691345 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   5. ViewClassic->process() /var/www/crm2015/include/MVC/Controller/SugarController.php:371, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691348 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   6. ViewClassic->display() /var/www/crm2015/include/MVC/View/SugarView.php:169, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691350 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   7. ViewClassic->includeClassicFile() /var/www/crm2015/include/MVC/View/views/view.classic.php:74, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691353 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   8. include_once() /var/www/crm2015/include/MVC/View/SugarView.php:777, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691355 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   9. SubPanelTiles->display() /var/www/crm2015/modules/Emails/DetailView.php:520, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691358 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  10. SubPanel->ProcessSubPanelListView() /var/www/crm2015/include/SubPanel/SubPanelTiles.php:366, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691368 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  11. ListViewSubPanel->process_dynamic_listview() /var/www/crm2015/include/SubPanel/SubPanel.php:220, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691370 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  12. ListViewSubPanel->process_dynamic_listview_header() /var/www/crm2015/include/ListView/ListViewSubPanel.php:155, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691373 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  13. LayoutManager->widgetDisplay() /var/www/crm2015/include/ListView/ListViewSubPanel.php:207, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691375 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  14. LayoutManager->getClassFromWidgetDef() /var/www/crm2015/include/generic/LayoutManager.php:360, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691377 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  15. class_exists() /var/www/crm2015/include/generic/LayoutManager.php:310, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691379 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  16. spl_autoload_call() /var/www/crm2015/include/generic/LayoutManager.php:310, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:12.691381 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  17. SugarAutoLoader::autoload() /var/www/crm2015/include/generic/LayoutManager.php:310, referer: http://blloyd.ddns.net/crm2015/index.php?module=Opportunities&action=DetailView&record=2a91d39b-2571-84d5-b410-5ad7469e84f1
[Mon Apr 30 19:12:18.294329 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP Notice:  Array to string conversion in /var/www/crm2015/modules/Emails/EmailUI.php on line 448, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294348 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP Stack trace:, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294353 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   1. {main}() /var/www/crm2015/index.php:0, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294356 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   2. SugarApplication->execute() /var/www/crm2015/index.php:52, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294359 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   3. SugarController->execute() /var/www/crm2015/include/MVC/SugarApplication.php:105, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294362 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   4. SugarController->processView() /var/www/crm2015/include/MVC/Controller/SugarController.php:318, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294371 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   5. ViewClassic->process() /var/www/crm2015/include/MVC/Controller/SugarController.php:371, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294374 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   6. ViewClassic->display() /var/www/crm2015/include/MVC/View/SugarView.php:169, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294376 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   7. ViewClassic->includeClassicFile() /var/www/crm2015/include/MVC/View/views/view.classic.php:74, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294379 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   8. include_once() /var/www/crm2015/include/MVC/View/SugarView.php:777, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294381 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP   9. generateComposeDataPackage() /var/www/crm2015/modules/Emails/Compose.php:51, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294383 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  10. initFullCompose() /var/www/crm2015/modules/Emails/Compose.php:293, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294385 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  11. include() /var/www/crm2015/modules/Emails/Compose.php:72, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294388 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  12. EmailUI->displayEmailFrame() /var/www/crm2015/modules/Emails/index.php:52, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities
[Mon Apr 30 19:12:18.294390 2018] [:error] [pid 7290] [client 192.168.1.1:60990] PHP  13. EmailUI->_generateComposeConfigData() /var/www/crm2015/modules/Emails/EmailUI.php:141, referer: http://blloyd.ddns.net/crm2015/index.php?module=Emails&action=DetailView&record=bd73086f-8dc2-0428-18a7-5ae75c52a7a3&parent_id=2a91d39b-2571-84d5-b410-5ad7469e84f1&parent_module=Opportunities

Now we’re talking! :slight_smile:

Please fix this line

https://github.com/salesagility/SuiteCRM/blob/v7.8.18/include/generic/SugarWidgets/SugarWidgetSubPanelEmailLink.php#L48

add a & so that it becomes:

function displayList(&$layout_def) {

This is fixed in the newer versions, and probably the fix should have gone into 7.8.x also, but for some reason it didn’t.

Tell me if it works, 7.8.x is LTS so I’ll still try to get the fix into it.

I’ve checked line 48 of the file at /include/generic/SugarWidgets/SugarWidgetSubPanelEmailLink.php and the missing “&” is already present in the code…

Thanks for your help pgr

Are you really on 7.8.18? Your code doesn’t seem to match what was supposed to be there, according to Github…

What about here, can you try the “&” here?

https://github.com/salesagility/SuiteCRM/blob/v7.8.18/include/generic/SugarWidgets/SugarWidgetField.php#L168

Thanks pgr - that ‘&’ was definitely missing. Sadly, the problem persists with the following exciting errors. From the Apache log:


[Tue May 01 20:32:29.774259 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP Stack trace:, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774263 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   1. {main}() /var/www/crm2015/index.php:0, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774266 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   2. SugarApplication->execute() /var/www/crm2015/index.php:52, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774268 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   3. HomeController->execute() /var/www/crm2015/include/MVC/SugarApplication.php:105, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774270 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   4. HomeController->process() /var/www/crm2015/include/MVC/Controller/SugarController.php:315, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774273 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   5. HomeController->handleEntryPoint() /var/www/crm2015/include/MVC/Controller/SugarController.php:402, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774275 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   6. require_once() /var/www/crm2015/include/MVC/Controller/SugarController.php:872, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774277 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   7. MyMeetingsDashlet->process() /var/www/crm2015/include/MySugar/retrieve_dash_page.php:273, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774279 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   8. MyMeetingsDashlet->process() /var/www/crm2015/modules/Meetings/Dashlets/MyMeetingsDashlet/MyMeetingsDashlet.php:109, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774281 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   9. MyMeetingsDashlet->buildWhere() /var/www/crm2015/include/Dashlets/DashletGeneric.php:391, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774283 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP  10. LayoutManager->getClassFromWidgetDef() /var/www/crm2015/include/Dashlets/DashletGeneric.php:306, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774285 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP  11. class_exists() /var/www/crm2015/include/generic/LayoutManager.php:310, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774287 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP  12. spl_autoload_call() /var/www/crm2015/include/generic/LayoutManager.php:310, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774289 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP  13. SugarAutoLoader::autoload() /var/www/crm2015/include/generic/LayoutManager.php:310, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:29.774291 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP  14. require_once() /var/www/crm2015/include/utils/autoloader.php:93, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963770 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP Notice:  Array to string conversion in /var/www/crm2015/modules/Emails/EmailUI.php on line 448, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963796 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP Stack trace:, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963800 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   1. {main}() /var/www/crm2015/index.php:0, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963804 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   2. SugarApplication->execute() /var/www/crm2015/index.php:52, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963807 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   3. SugarController->execute() /var/www/crm2015/include/MVC/SugarApplication.php:105, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963809 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   4. SugarController->processView() /var/www/crm2015/include/MVC/Controller/SugarController.php:318, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963812 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   5. ViewClassic->process() /var/www/crm2015/include/MVC/Controller/SugarController.php:371, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963814 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   6. ViewClassic->display() /var/www/crm2015/include/MVC/View/SugarView.php:169, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963817 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   7. ViewClassic->includeClassicFile() /var/www/crm2015/include/MVC/View/views/view.classic.php:74, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963819 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   8. include_once() /var/www/crm2015/include/MVC/View/SugarView.php:777, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963822 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP   9. EmailUI->displayEmailFrame() /var/www/crm2015/modules/Emails/index.php:52, referer: http://zzz/crm2015/index.php?module=Home&action=index
[Tue May 01 20:32:31.963824 2018] [:error] [pid 22017] [client 192.168.1.1:64010] PHP  10. EmailUI->_generateComposeConfigData() /var/www/crm2015/modules/Emails/EmailUI.php:141, referer: http://zzz/crm2015/index.php?module=Home&action=index

And from the sugarcrm.log:


Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] Formatting correction: Reminders->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Tue May  1 20:32:28 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] SugarBean.php: preprocess_fields_on_save() is deprecated
Tue May  1 20:32:29 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image  not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Email_Templates.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Contact_Vcard.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Lead_Vcard.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Email_Templates.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Create_Email_Templates.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Email_Templates.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Diagnostics.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Person_Form.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Meeting.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Call.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Today.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Call.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Meeting.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Resource_Chart.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Project_Tasks.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Call.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Schedule_Meeting.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Resource_Chart.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Project_Tasks.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View_Process_Audit.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create_Security_Group.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image View.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List_Maps.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Quick_Radius_Map.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image Create.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image List.gif not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image dashboard.png not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image sidebar/modules/Currencies.svg not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][WARN] Image sidebar/modules/Currencies.svg not found
Tue May  1 20:32:31 2018 [22017][44bc535b-103d-dc6e-00c6-54a3d594bf4d][DEPRECATED] User::getPreference() should not be used statically.

:ohmy: I’ve just tested using Google Chrome and email displays correctly - despite all the errors in the logs. WTH?

Those deprecated and warning messages in suitecrm.log are not relevant.

The message from php_errors.log might be, but again, it’s missing the main line above that, which is what tells me what the error is. The one above “PHP Stack Trace”.

If the error appear to be browser-specific, then please look in your browser’s Web console, there should be some javascript error there.

Sorry, here’s the correct listing:


[Sat May 05 22:54:57.619296 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP Warning:  Declaration of SugarWidgetSubPanelTopCreateLeadNameButton::display($defines) should be compatible with SugarWidgetSubPanelTopButton::display($defines, $additionalFormFields = NULL, $nonbutton = false) in /var/www/crm2015/include/generic/SugarWidgets/SugarWidgetSubPanelTopCreateLeadNameButton.php on line 0, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619298 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP Stack trace:, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619300 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   1. {main}() /var/www/crm2015/index.php:0, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619302 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   2. SugarApplication->execute() /var/www/crm2015/index.php:52, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619304 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   3. SugarController->execute() /var/www/crm2015/include/MVC/SugarApplication.php:105, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619306 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   4. SugarController->processView() /var/www/crm2015/include/MVC/Controller/SugarController.php:318, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619308 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   5. OpportunitiesViewDetail->process() /var/www/crm2015/include/MVC/Controller/SugarController.php:371, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619311 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   6. OpportunitiesViewDetail->_displaySubPanels() /var/www/crm2015/include/MVC/View/SugarView.php:198, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619313 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   7. SubPanelTiles->display() /var/www/crm2015/include/MVC/View/SugarView.php:1130, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619315 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   8. SubPanel->ProcessSubPanelListView() /var/www/crm2015/include/SubPanel/SubPanelTiles.php:366, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619317 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP   9. ListViewSubPanel->process_dynamic_listview() /var/www/crm2015/include/SubPanel/SubPanel.php:220, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619319 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  10. ListViewSubPanel->processUnionBeans() /var/www/crm2015/include/ListView/ListViewSubPanel.php:142, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619322 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  11. ListViewSubPanel->processListNavigation() /var/www/crm2015/include/ListView/ListView.php:1112, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619325 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  12. SubPanelTiles->get_buttons() /var/www/crm2015/include/ListView/ListViewSubPanel.php:812, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619327 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  13. LayoutManager->widgetDisplay() /var/www/crm2015/include/SubPanel/SubPanelTiles.php:433, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619329 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  14. LayoutManager->getClassFromWidgetDef() /var/www/crm2015/include/generic/LayoutManager.php:360, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619331 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  15. class_exists() /var/www/crm2015/include/generic/LayoutManager.php:298, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619332 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  16. spl_autoload_call() /var/www/crm2015/include/generic/LayoutManager.php:298, referer: http://blloyd.ddns.net/crm2015/index.php
[Sat May 05 22:54:57.619334 2018] [:error] [pid 12348] [client 192.168.1.1:49830] PHP  17. SugarAutoLoader::autoload() /var/www/crm2015/include/generic/LayoutManager.php:298, referer: http://blloyd.ddns.net/crm2015/index.php

As for the Javascript web console, it looks like the issue is related to uBlock Origin:


Error: uBlock Origin: aborting content scripts for http://zzz/crm2015/index.php?entryPoint=getImage&imageName=blank.png

I’ve disabled uBlock on the appropriate domain, but the email body (and Javascript) error remain.

Please try a different browser, to see if it works.

Please post the contents of this file in your installation:

include/generic/SugarWidgets/SugarWidgetSubPanelTopCreateLeadNameButton.php

Annoyingly, email is displayed correctly in Google Chrome. I will have to take the issue up with uBlock Origin…

Here is the code from the specified file:


<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
 * SugarCRM Community Edition is a customer relationship management program developed by
 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.

 * SuiteCRM is an extension to SugarCRM Community Edition developed by Salesagility Ltd.
 * Copyright (C) 2011 - 2014 Salesagility Ltd.
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 *
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
 *
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 *
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
 * reasonably feasible for  technical reasons, the Appropriate Legal Notices must
 * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
 ********************************************************************************/

 




class SugarWidgetSubPanelTopCreateLeadNameButton extends SugarWidgetSubPanelTopButtonQuickCreate
{

    public function getWidgetId()
    {
        return parent::getWidgetId();
    }

	function display($defines)
	{
		global $app_strings;
		global $currentModule;

		$title = $app_strings['LBL_NEW_BUTTON_TITLE'];
		//$accesskey = $app_strings['LBL_NEW_BUTTON_KEY'];
		$value = $app_strings['LBL_NEW_BUTTON_LABEL'];
		$this->module = 'Leads';
		if( ACLController::moduleSupportsACL($defines['module'])  && !ACLController::checkAccess($defines['module'], 'edit', true)){
			$button = "<input title='$title'class='button' type='button' name='button' value='  $value  ' disabled/>\n";
			return $button;
		}
		
		$additionalFormFields = array();
		
		//from accounts
		if ($defines['focus']->object_name == 'Account') {
			if(isset($defines['focus']->billing_address_street)) 
				$additionalFormFields['primary_address_street'] = $defines['focus']->billing_address_street;
			if(isset($defines['focus']->billing_address_city)) 
				$additionalFormFields['primary_address_city'] = $defines['focus']->billing_address_city;						  		
			if(isset($defines['focus']->billing_address_state)) 
				$additionalFormFields['primary_address_state'] = $defines['focus']->billing_address_state;
			if(isset($defines['focus']->billing_address_country)) 
				$additionalFormFields['primary_address_country'] = $defines['focus']->billing_address_country;
			if(isset($defines['focus']->billing_address_postalcode)) 
				$additionalFormFields['primary_address_postalcode'] = $defines['focus']->billing_address_postalcode;
			if(isset($defines['focus']->phone_office)) 
				$additionalFormFields['phone_work'] = $defines['focus']->phone_office;
			if(isset($defines['focus']->id)) 
				$additionalFormFields['account_id'] = $defines['focus']->id;
		}
		//from contacts
		if ($defines['focus']->object_name == 'Contact') {
			if(isset($defines['focus']->salutation)) 
				$additionalFormFields['salutation'] = $defines['focus']->salutation;
			if(isset($defines['focus']->first_name)) 
				$additionalFormFields['first_name'] = $defines['focus']->first_name;
			if(isset($defines['focus']->last_name)) 
				$additionalFormFields['last_name'] = $defines['focus']->last_name;
			if(isset($defines['focus']->primary_address_street)) 
				$additionalFormFields['primary_address_street'] = $defines['focus']->primary_address_street;
			if(isset($defines['focus']->primary_address_city)) 
				$additionalFormFields['primary_address_city'] = $defines['focus']->primary_address_city;						  		
			if(isset($defines['focus']->primary_address_state)) 
				$additionalFormFields['primary_address_state'] = $defines['focus']->primary_address_state;
			if(isset($defines['focus']->primary_address_country)) 
				$additionalFormFields['primary_address_country'] = $defines['focus']->primary_address_country;
			if(isset($defines['focus']->primary_address_postalcode)) 
				$additionalFormFields['primary_address_postalcode'] = $defines['focus']->primary_address_postalcode;
			if(isset($defines['focus']->phone_work)) 
				$additionalFormFields['phone_work'] = $defines['focus']->phone_work;
			if(isset($defines['focus']->id)) 
				$additionalFormFields['contact_id'] = $defines['focus']->id;
		}
		
		//from opportunities
		if ($defines['focus']->object_name == 'Opportunity') {
			if(isset($defines['focus']->id)) 
				$additionalFormFields['opportunity_id'] = $defines['focus']->id;
			if(isset($defines['focus']->account_name)) 
				$additionalFormFields['account_name'] = $defines['focus']->account_name;
			if(isset($defines['focus']->account_id)) 
				$additionalFormFields['account_id'] = $defines['focus']->account_id;
		}
		
		$button = $this->_get_form($defines, $additionalFormFields);
		$button .= "<input title='$title' class='button' type='submit' name='{$this->getWidgetId()}_button' id='{$this->getWidgetId()}' value='  $value  '/>\n";
		$button .= "</form>";
		return $button;
	}
}
?>

Actually, I’ve just disabled uBlock Origin and email still doesn’t display. There are plenty of javascript errors though:


[Error] ReferenceError: Can't find variable: chrome
	Global Code (oninstall.js:33)
	write
	consumeMetaPreview (sugar_grp_emails.js:463:525)
	success (sugar_grp_emails.js:900:520)
	handleTransactionResponse (sugar_grp1_yui.js:109:4455)
	(anonymous function) (sugar_grp1_yui.js:109:3961)
[Error] ReferenceError: Can't find variable: safari
	(anonymous function) (all.js:25:16279)
	Global Code (all.js:25:17532)
	close
	consumeMetaPreview (sugar_grp_emails.js:463:586)
	success (sugar_grp_emails.js:900:520)
	handleTransactionResponse (sugar_grp1_yui.js:109:4455)
	(anonymous function) (sugar_grp1_yui.js:109:3961)
[Error] ReferenceError: Can't find variable: safari
	onBeforeLoad (content-script.js:28)
[Error] ReferenceError: Can't find variable: chrome
	Global Code (oninstall.js:33)
	write
	consumeMetaDetail (sugar_grp_emails.js:458:118)
	populateDetailView (sugar_grp_emails.js:468:216)
	getEmail (sugar_grp_emails.js:560:526)
	notify (sugar_grp1_yui.js:84:1561)
	fire (sugar_grp1_yui.js:84:1300)
	fireEvent (sugar_grp1_yui.js:86:2142)
	_onTableDblclick (sugar_grp_yui_widgets.js:2:63429)
	n (sugar_grp1_yui.js:79:26948)
[Error] ReferenceError: Can't find variable: safari
	(anonymous function) (all.js:25:16279)
	Global Code (all.js:25:17532)
	close
	consumeMetaDetail (sugar_grp_emails.js:458:179)
	populateDetailView (sugar_grp_emails.js:468:216)
	getEmail (sugar_grp_emails.js:560:526)
	notify (sugar_grp1_yui.js:84:1561)
	fire (sugar_grp1_yui.js:84:1300)
	fireEvent (sugar_grp1_yui.js:86:2142)
	_onTableDblclick (sugar_grp_yui_widgets.js:2:63429)
	n (sugar_grp1_yui.js:79:26948)

This is the second time your code doesn’t seem to match what should be there for your version number. Maybe something went wrong with some upgrade.

You can inspect things yourself starting from links like this one:

https://github.com/salesagility/SuiteCRM/tree/v7.8.17

Then go into that file. The difference is in the “Display” function header (which gives that error you pasted above).

I don’t know about the Browser javascript errors… If you could possibly try this on a fresh install, it would tell us if the problem is really a SuiteCRM bug, or just some issue with your own installation.