CoreBOSBB
Error in email Template - Suggest Enhanced in GlobalVariable - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Error in email Template - Suggest Enhanced in GlobalVariable (/showthread.php?tid=1320)



Error in email Template - Suggest Enhanced in GlobalVariable - rslemer - 10-29-2018

When I try created new template, and insert a tag for translate, using variables at Account/Leads or User, system not translated correctly or shows error below


Fatal error: Uncaught Exception: result is not an object in /usr/share/coreBOS/corebos-master/include/database/PearDatabase.php:826 Stack trace: #0 /usr/share/coreBOS/corebos-master/include/utils/CommonUtils.php(2370): PearDatabase->query_result(false, 0, 'user_name') #1 /usr/share/coreBOS/corebos-master/modules/Emails/mailsend.php(118): getMergedDescription('<p style="text-...', '1', 'Users') #2 /usr/share/coreBOS/corebos-master/modules/Emails/Save.php(188): include('/usr/share/core...') #3 /usr/share/coreBOS/corebos-master/index.php(475): include_once('/usr/share/core...') #4 {main} thrown in /usr/share/coreBOS/corebos-master/include/database/PearDatabase.php on line 826


RE: Error in email Template - joebordes - 10-30-2018

Can you share the template with the error? please


RE: Error in email Template - rslemer - 10-31-2018

I don't know I did change, now error not occurs anymore, only account variables not as translated ..

I sent my template in your email


RE: Error in email Template - joebordes - 11-01-2018

The template works correctly for me


RE: Error in email Template - rslemer - 11-03-2018

Translated a account variables, in this case account name?

My sequence is

At contacts, more inf, tab, click at add email and send. Not translated a account name ( user variables, works, but account not )

although that, my user click in related tab, in contacts, and account is related with him

What sequence you to works?


RE: Error in email Template - joebordes - 11-03-2018

No matter what steps I take it always works correctly for me. I even reviewed the code, it always merges against Accounts for the Contacts module and now, I made a change so it merges against Accounts for any module that is related to it.

You sequence described above works for me. Make sure the contact you are trying with is actually related to an account.


RE: Error in email Template - rslemer - 11-05-2018

Can be ..

That none advertise a user when selected a template with not all conditions for translate variables ...

I think better in this case, is translated variable to "blank field", because when system not translated, appears as system not worked ..

What you think about it?


RE: Error in email Template - joebordes - 11-05-2018

Yes, I think we could add a global variable to indicate that.


RE: Error in email Template - rslemer - 11-05-2018

Sounds like good