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) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • No such message template: option group msg_tpl_workflow_uf, option value uf_noti
Pages: [1] 2

Author Topic: No such message template: option group msg_tpl_workflow_uf, option value uf_noti  (Read 4430 times)

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 15, 2010, 07:15:11 am
I get this message, when I try to create a new organization. I have made a profile and It has all the fields I want but when a new org is created the message comes. The org is created but the message appears anyway.

No such message template: option group msg_tpl_workflow_uf, option value uf_notify.

What is it and how do I solve this?
Regards

Rudy Madsen

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 15, 2010, 12:13:11 pm
Looks like you've configured this Profile to "Notify when profile form is submitted?" - i.e. send email to someone in your organization whenever the profile form is submitted. However, for some reason the "System Workflow Message Template" that is used to format that email seems to be missing or disabled on your site.

Navigate to Administer > Configure > Message Templates and select System Workflow Messages tab. You should see a list of templates used for various automated emails, including one labeled "Profiles - Admin Notification". If this is missing, then either some upgrade process wasn't run or didn't insert the required data OR something else happened to remove or modify this required record.

Are you running the site in a language other than English - might be a localisation bug?

You can see what "should be there" on the public demo after logging in:
http://drupal.demo.civicrm.org/civicrm/admin/messageTemplates?selectedChild=workflow&reset=1
Protect your investment in CiviCRM by  becoming a Member!

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 15, 2010, 11:44:16 pm
You are right. I have a notification on this profile. But the funny thing is that tha message template is present and the content is exactly the same as in the demo. There must be some thing else wrong with the link between the profile and the message template. I could turn it off but it would be nice for me to have a notification.
Regards

Rudy Madsen

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 16, 2010, 09:26:36 am
Are you running the site in English?
Have you upgraded to latest version (3.2.3) - your profile shows 3.2 beta?
Protect your investment in CiviCRM by  becoming a Member!

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 16, 2010, 11:53:59 pm
I am running the site in danish and my version is 3.2.2. stable.

How can my profile show the BETA version?

Regards

Rudy Madsen

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 17, 2010, 12:40:35 pm
It seems like somethings not quite right with your meta-data - possibly an upgrade bug or ??

Can you run this SQL statement and post back the results:
Code: [Select]
SELECT * FROM `civicrm_option_value`
WHERE option_group_id
IN (
SELECT id FROM civicrm_option_group WHERE name = 'msg_tpl_workflow_uf'
);
[code]

You should get back one row with Label column = 'Profiles - Admin Notification'. If you get no rows, try this query:
[code]
SELECT * FROM `civicrm_option_value` where `label` = 'Profiles - Admin Notification';


(See info under your user name in left column for your "profile". Click Profile above to update it.)[/code][/code]
Protect your investment in CiviCRM by  becoming a Member!

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 17, 2010, 10:47:59 pm
You're right. I did get that row back you mention.

So there was no error there?

What can I do next?
Regards

Rudy Madsen

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 18, 2010, 07:22:40 am
The text in the 'name' column in that row should be 'uf_notify'. If it's some other string - than that would explain the error and I guess you could update that row and set name = 'uf_notify'. However, if this is the case do post back here so we might get a clue about where things went wrong.

If the 'name' column text is correct, then you'll need to debug the query that's failing inside the code. It's in CRM/Core/BAO/MessageTemplates.php. The query is constructed starting on line 356 (it's a SELECT statement). You'll need to print out the values of the 2 parameters passed to it, and then try running the query in your DB - that should help you figure out what's wrong. In a "working" site:

$params['groupName'] is 'msg_tpl_workflow_uf'
$params['valueName'] is 'uf_notify'

(relooking at the query, it might be that the civicrm_msg_template row joined by the query does NOT have is_default = 1, so I'd look at that too)
Protect your investment in CiviCRM by  becoming a Member!

Rudy Madsen

  • I post occasionally
  • **
  • Posts: 68
  • Karma: -2
  • CiviCRM version: 4.4.6
  • CMS version: Joomla 2.5 > 3.3
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
September 18, 2010, 07:55:06 am
I'm sorry, you lost me there...
Okay, I can se that the name column has the content that you said 'uf_notify'.
I'm not a code nerd so I have no idea what the other thing is that you talked about. There is my limit.

Is there any way I can get help doing the thing you want me to do? ???

« Last Edit: September 18, 2010, 07:58:35 am by rud »
Regards

Rudy Madsen

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
November 22, 2010, 04:19:23 pm
hi dave - hit the same error msg

No such message template: option group msg_tpl_workflow_uf, option value uf_notify.

Ran the two SQl above and got zero rows on both.

Can you suggest a next step?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
November 22, 2010, 08:40:53 pm
so yes the Profile has an address to notify - if i remove the address, the forms run fine, if i reinsert the email address, i get the above error - so that confirms (if it needed it) that the issue is with the 'notify' msg - so now to the problem of it not finding the entry in the db .... any pointers
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
November 22, 2010, 08:50:13 pm
had another thought to just resave the default Profiles - Admin Notification but no joy

If it helps, this is an 'old' site that has been regularly upgraded, so probably from pre 2.x maybe. Now on 3.2.5
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
November 23, 2010, 10:05:02 am
Peter - Seems like the option group and option value rows are missing. To confirm:
Code: [Select]
SELECT * FROM civicrm_option_group WHERE name = 'msg_tpl_workflow_uf';
If that returns zero rows, then some upgrade failed to insert the needed option group and option value rows.  I'm not seeing code in the Upgrade directories which would do this (which is puzzling me). I'm going refer this to the person who worked on the system workflow template stuff and see if there's a general upgrade issue or ???

Protect your investment in CiviCRM by  becoming a Member!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
November 23, 2010, 10:39:04 am
Actually, the upgrade code is there:

CRM/Upgrade/3.1.alpha1.msg_template/civicrm_msg_template.tpl

Would be good to see if any of the msg template option groups got inserted:
Code: [Select]
SELECT * FROM `civicrm_option_group` WHERE name like 'msg_tpl_workflow%';
Protect your investment in CiviCRM by  becoming a Member!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: No such message template: option group msg_tpl_workflow_uf, option value uf_noti
November 23, 2010, 11:50:59 am
Yep - the following
Code: [Select]
msg_tpl_workflow_case
msg_tpl_workflow_contribution
msg_tpl_workflow_event
74 msg_tpl_workflow_friend
msg_tpl_workflow_membership
msg_tpl_workflow_meta
msg_tpl_workflow_pledge
msg_tpl_workflow_uf
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • No such message template: option group msg_tpl_workflow_uf, option value uf_noti

This forum was archived on 2017-11-26.