I upgraded to 7.11.4 and now email templates are not loading when I am composing an email. The email template search box pops up but when I click on a template it doesnât pull into the compose email window? Otherwise email work fine, can compose and send.
Suitecrm 7.11.4
PHP 7.2
MariaDB
Already checked permissions which are fine. Ran repair, rebuild javascript language. Tried different browsers. Following is error recent log:
Thu May 16 13:06:34 2019 [1760301][1][FATAL] Mysqli_query failed.
Thu May 16 13:06:34 2019 [1760301][1][FATAL] Query Failed: select * from WHERE id=ânullâ and deleted=0: MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near âWHERE id=ânullâ and deleted=0â at line 1
Thu May 16 13:06:35 2019 [1760301][1][FATAL] MysqliManager: Empty query
Thu May 16 13:35:09 2019 [1812986][1][FATAL] Mysqli_query failed.
Thu May 16 13:35:09 2019 [1812986][1][FATAL] Query Failed: select * from WHERE id=ânullâ and deleted=0: MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near âWHERE id=ânullâ and deleted=0â at line 1
Thu May 16 13:35:09 2019 [1812987][1][FATAL] Mysqli_query failed.
Thu May 16 13:35:09 2019 [1812987][1][FATAL] Query Failed: select * from WHERE id=ânullâ and deleted=0: MySQL error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near âWHERE id=ânullâ and deleted=0â at line 1
Fri May 17 07:11:40 2019 [3677475][1][FATAL] Exception handling in /home/assuredf/public_html/crm/include/MVC/Controller/SugarController.php:400
Fri May 17 07:11:40 2019 [3677475][1][FATAL] Exception in Controller: Failed to parse Host URL âhttp://â
Fri May 17 07:11:40 2019 [3677475][1][FATAL] backtrace: #0 /home/assuredf/public_html/crm/lib/Search/ElasticSearch/ElasticSearchClientBuilder.php(177): SuiteCRM\Search\ElasticSearch\ElasticSearchClientBuilder::sanitizeHost(Array) #1 /home/assuredf/public_html/crm/lib/Search/ElasticSearch/ElasticSearchClientBuilder.php(63): SuiteCRM\Search\ElasticSearch\ElasticSearchClientBuilder::loadFromSugarConfig() #2 /home/assuredf/public_html/crm/lib/Search/ElasticSearch/ElasticSearchIndexer.php(86): SuiteCRM\Search\ElasticSearch\ElasticSearchClientBuilder::getClient() #3 /home/assuredf/public_html/crm/lib/Search/ElasticSearch/ElasticSearchIndexer.php(576): SuiteCRM\Search\ElasticSearch\ElasticSearchIndexer->__construct() #4 /home/assuredf/public_html/crm/modules/Administration/repairDatabase.php(179): SuiteCRM\Search\ElasticSearch\ElasticSearchIndexer::repairElasticsearchIndex() #5 /home/assuredf/public_html/crm/modules/Administration/QuickRepairAndRebuild.php(142): include_once(â/home/assuredf/âŚâ) #6 /home/assuredf/public_html/crm/modules/Administration/QuickRepairAndRebuild.php(124): RepairAndClear->repairDatabase() #7 /home/assuredf/public_html/crm/modules/Administration/views/view.repair.php(61): RepairAndClear->repairAndClearAll(Array, Array, false, true) #8 /home/assuredf/public_html/crm/include/MVC/View/SugarView.php(226): ViewRepair->display() #9 /home/assuredf/public_html/crm/include/MVC/Controller/SugarController.php(435): SugarView->process() #10 /home/assuredf/public_html/crm/include/MVC/Controller/SugarController.php(375): SugarController->processView() #11 /home/assuredf/public_html/crm/include/MVC/SugarApplication.php(113): SugarController->execute() #12 /home/assuredf/public_html/crm/index.php(52): SugarApplication->execute() #13 {main}
The thing is we never configured or touched Elasticsearch since upgrading to 7.11 - itâs still set to Basic+Advance so I donât know why Elasticsearch errors are show up? I know that the templates where working fine when it was 7.10.15 but now after upgrading it doesnât. Composing and sending emails does.
Hi,
i also have the same problem, mine is a new installation, among other things I also tested suitecrm demo and there is the same problem.
Thanks in advance for the help
Can somebody please provide exact steps? I would like to try on the same module where you are, coming from the same screen, pressing the same button etc.
The only thing strange that I see is that when I click the email address, I get two âcomposeâ windows: one within SuiteCRM, and another that Windows opens on the Desktop with my default email client (Thunderbird).
Do you see any Javascript errors in your browserâs Developer console?
I just registered and tried doing this with suitecrm demo which is running 7.11.4 and itâs also doing the same thing not pulling the email template when composing an email.
So I thinks this is a 7.11.4 issue since itâs happening on your environment and with your online demo.
I checked but this isnât working on suitecrm online demo and the new test install I did which would be default setup with no changes? Have you looked at the suitecrm online demo?
I assume it is not working on the online demo, because you said so - I donât need to go and check because I believe you
But since it is working in my installation, I was wondering if it could be related to the way the email account is configured. For example, on the live demo you canât configure an account, can you?
This is why I made my request above for you to try adding every field in the configuration.
Email Templates do not work for us on Version 7.10.16
Click on Contacts --> Click on Contactâs Email Address.
Click on Template Search arrow button
Click the search Search Template button
Click any template.
What should happen is: my email body should be replaced with the new body of the template.
What does happen is: Nothing - No javascript errors nor any errors in the php log or suitecrm log that I can find.
â Another way to reproduce:
Click on Emails
click Compose
Click Search template button
Click Search button in the pop-up search.
Click any template
What should happen is: my email body should be replaced with the new body/subject of the template.
What does happen is: Nothing. Again, no javascript errors nor any server log errors.
Just thought Iâd share since this is a different version having similar issues as the poster here.
Hello,
I did various tests, even with the demo version, creating an email account but with the same problem. I also tried the 7.10.16 LTS version even with this one I canât use the template.
Seems really weird, do you think it could be some package PHP missing?
I tried running composer install, it gave me an error because vendor/browserstack/browserstack-local doesnât exist. I ran composer install --no-dev and running that didnât seem to fix the email template issue.