CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Event Registration - Blank Email fromMessage Template - CiviCRM 4.1.2/Drupal 6
Pages: [1]

Author Topic: Event Registration - Blank Email fromMessage Template - CiviCRM 4.1.2/Drupal 6  (Read 845 times)

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Event Registration - Blank Email fromMessage Template - CiviCRM 4.1.2/Drupal 6
January 31, 2013, 11:31:14 pm
Hello,

   We're having a problem with the Event Registration wherein a blank email is being sent to some Participants.
Initially we thought it's a random issue but after debugging for a while and putting breakpoints in the file

CRM/Core/BAO/MessageTemplates.php
in the method
static function sendTemplate($params)
during the smarty processing
Code: [Select]
        Logger::debug_var("text5", $text);
        foreach (array('subject', 'text', 'html') as $elem) {
            $$elem = $smarty->fetch("string:{$$elem}");
            if($elem == 'text') {
              Logger::debug_var("text6", $text);
            }
}
        Logger::debug_var("text7", $text);

in the above section when i use an email id
foo@mydomain.com it shows values for text5, text6 and text7
however if i use the email id bar@mydomain.com it show's text for text5 but both text6 and text7 are empty.

so the problem seems to be happening for
Code: [Select]
$$elem = $smarty->fetch("string:{$$elem}");

Any pointers on how to figure out the problem and the cause of it ?

Thanks in Advance.

Yashesh

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: Event Registration - Blank Email fromMessage Template - CiviCRM 4.1.2/Drupal 6
February 01, 2013, 07:00:47 am
I think i figured it out.  The site we're having is a part of a multi site installation
i.e.  2 sites

www.example1.com and www.example2.com are using the same civicrm db, files, code and templates for both the sites.
event registration from example1.com are working fine but from example2.com are sending blank emails.

will need to do fix the sharing of templates between 2 sites

Regards

Yashesh

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Event Registration - Blank Email fromMessage Template - CiviCRM 4.1.2/Drupal 6

This forum was archived on 2017-11-26.