Email templates not loading

Okay, I figured out the two files, followed the instructions, still no change. I have tons of issues with SuiteCRM so will continue to try different things. Thanks a bunch for the help though.

If you have “tons” of issues, my #1 problem solving is reset all the permissions, Fixes like 80% of all problems after install or upgrade. Then repair/rebuild and clear your browser cache.

Here’s a really cool script you can add to your root and just run it from your browser to fix your permissions. See if that helps at all:

https://github.com/amariussi/chperms

This is awesome! You have been very helpful.

So when I run the script, I get this.

Warning: chmod(): Operation not permitted in /Applications/XAMPP/xamppfiles/htdocs/SuiteCRM/chperms.php on line 33

Not really sure what this means. Any thoughts?

Thanks

Martin

Are you running it locally on your computer or on a web server?

running locally

You may not be allowed to do this in terms of security if you’re running locally. My experience is running it on a web server. You can get hosting for like $20 bucks a month. It runs pretty well right out of the box if installed on an Apache web server with Cpanel.

You’ll find most people on here have it installed on a web server. The environment it’s installed on and the settings of the server have a huge impact on how it works and performs. My experience is all with Apache and Cpanel. I have bit of experience with it installed on IIS, and that’s always been a huge problem.

Do yourself a favor, install it on a web server. Plus, you’ll be able to access from your cell phone from anywhere you have a connection.

I was going to setup a web server however I was using this local install as a test case to see if SuiteCRM would fit my needs. Perhaps I will need to try what you say.

Once again, thank you for your advice, greatly appreciated.

Martin

I found the commit that broke this functionality. It is https://github.com/Dillon-Brown/SuiteCRM/commit/4fc82a3f055b3e3c80c56ef344db909131d6a36e#diff-0ec7914ca717813c63171c7863a631ea.

You need to replace

var call_back_function = window.opener[request_data.call_back_function];

with

SUGAR.util.globalEval("var call_back_function = window.opener." + request_data.call_back_function);

in the popup_helper.js at line 103.

Thanks, I see that my file is already updated like that. Appreciate you trying.

Will continue my research.

Martin

Hi,
your post is long ago - did you find a solution?
For me nothing of the above works…

This is an old issue everything works fine on current version. I’ve got lots of installations working. Have you tried resetting permissions?

Hm, found out that this issue only occurs in modul “contact” in DetailView.
In all other modules it works perfectly, even when clicking on an emailadress in ListView of module contacts it works fine.

So I guess it’s not a global permissions problem?

I opened a new topic in german forum, maybe I should open a new topic in here?

Thank you for answering to this old topic :slight_smile:

This is still going on in 7.11.18

Tried replacing the 2 files as per pstevens’s suggestions (although supposedly they should be long included in this build), tried resetting permissions with chperms skript. I did see it working once briefly and then never again. It replaces subject line but not body. Looks eerily like a cache issue but I flushed all cashes.

This is what developer console has to say (uncaught type error)

Uncaught TypeError: tinymce.activeEditor is null
confirmed https://mysite.com/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DLeads%26offset%3D4%26stamp%3D1611910541063353700%26return_module%3DLeads%26action%3DDetailView%26record%3Db0fc04c1-0883-e959-44d0-601045857875 line 2 > injectedScript:1336
jQuery 8

confirmed https://mysite.com/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DLeads%26offset%3D4%26stamp%3D1611910541063353700%26return_module%3DLeads%26action%3DDetailView%26record%3Db0fc04c1-0883-e959-44d0-601045857875 line 2 > injectedScript:1330
onTemplateSelect https://mysite.com

/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DLeads%26offset%3D4%26stamp%3D1611910541063353700%26return_module%3DLeads%26action%3DDetailView%26record%3Db0fc04c1-0883-e959-44d0-601045857875 line 2 > injectedScript:1349
jQuery 21
onTemplateSelect https://mysite.com

/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DLeads%26offset%3D4%26stamp%3D1611910541063353700%26return_module%3DLeads%26action%3DDetailView%26record%3Db0fc04c1-0883-e959-44d0-601045857875 line 2 > injectedScript:1341

send_back https://mysite.com/include/javascript/popup_helper.js?v=7_zoEBPgnUSO8enSX3QycA:47
onclick https://mysite.com/index.php?module=EmailTemplates&action=Popup&mode=single&create=true&field_to_name[]=name:1

Yes, but only in Contact’s module’s DetailView.
on all other parts of suitecrm it works.

Not for me it doesn’t. When I try to send email from the leads list by clicking on the email address that’s where I experience the issue.

I’ve just tried creating an email both by clicking on the contacts email address in the contact record and creating an email from the activities subpanel of the contacts record. I can confirm they both work. I’m using Google Chrome and am on SuiteCRM 7.11.15

Did you do a repair and rebuild and also rebuild all the JS files and compressed files. There’s an option in studio to rebuild all this stuff. Try rebuilding then flushing all your caches.

I also seem to remember this issue was solved for me also by turning off: zlib.output_compression in cpanel.

Do you mean in studio or in admin area? I can’t find any rebuild and repair in studio as such?
I executed the rebuild and repair from admin panel, is that what you are referring to?

the output_compression sounds like something I haven’t tried, running Plesk unfortunately and can’t get to php.ini file to turn it off manually. Would you know as to whether this can be manipulated on a subdomain level?

Alright, I tried this in the Softaculous demo

https://demos4.softaculous.com/SuiteCRMp0ebeoft8u/index.php?action=DetailView&module=Leads&record=4b8734eb-6c0c-4923-f18f-60143edadc0f&return_module=Leads&return_action=DetailView&offset=1

and there it doesn’t work for me either. Subject gets populated but body doesn’t. That’s bad right. Means something on my browser is probably foul. Could someone try to replicate this? I am working from Sales->Leads, then click on the email address of an individual lead and try to compose an email by using the template. After selecting the template, this is the result:

Waddayaknow, this is a bug after all.

  • When composing email from leads overview page it works alright,
  • when composing from lead detail view it does not.

Overview meaning this page.