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 CiviEvent (Moderator: Yashodha Chaku) »
  • notification of event registration has bad link for Contact Summary
Pages: [1]

Author Topic: notification of event registration has bad link for Contact Summary  (Read 1244 times)

TheDonald

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
    • Students2Science
  • CiviCRM version: 3.4.5
  • CMS version: Joomla 1.5.20
  • MySQL version: MySQL 5.5.23
  • PHP version: PhP 5.2.17
notification of event registration has bad link for Contact Summary
September 14, 2012, 08:31:13 am
This link is wrong - but I cannot find the source.  Any ideas?

Email notification announcing new participant shows:

Submitted For.................... DonaldTruss+Test3@gmail.com

Date..................................Fri, 14 Sep 2012 08:26:51 -0500

Contact Summary ............https://www.students2science.org/~dtruss/index.php?option=com_civicrm&task=civicrm/contact/view&Itemid=103&reset=1&cid=1485

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: notification of event registration has bad link for Contact Summary
September 15, 2012, 01:22:34 pm
What is your version of Joomla and CiviCRM?

Why is the link wrong? What does it go to?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

TheDonald

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
    • Students2Science
  • CiviCRM version: 3.4.5
  • CMS version: Joomla 1.5.20
  • MySQL version: MySQL 5.5.23
  • PHP version: PhP 5.2.17
Re: notification of event registration has bad link for Contact Summary
September 15, 2012, 02:07:29 pm
Joomla 1.5.20; CiviCRM 3.4.5.   

When a new visitor registers for an event, an email is sent to the admin letting them know. In that email there is a link, so the admin can go and view the new person's status and approve them.
The link is not accurate and I cant find where this link is coming from. 
Any ideas?

mtem27

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.1
  • CMS version: 6
  • MySQL version: 5
  • PHP version: 5
Re: notification of event registration has bad link for Contact Summary
October 11, 2012, 03:02:08 am
Hi,

This is also happening in a site I am working on, but it is in a contribution notification. Submitted for and Contact Summary generates wrong information.

Drupal 6.26 and CiviCRM 3.4.

Any ideas where the email is being generated?

Thanks.


Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: notification of event registration has bad link for Contact Summary
October 11, 2012, 03:53:12 am
Quote
Any ideas where the email is being generated?
http://drupal.demo.civicrm.org/civicrm/admin/messageTemplates?reset=1

But if the data that is going into that template is wrong then 'where the email is being generated' is somewhere in the CRM/Contribute

Quote
Submitted for and Contact Summary generates wrong information
Would be useful if you could expand on that / provide a bit more detail.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

mtem27

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.1
  • CMS version: 6
  • MySQL version: 5
  • PHP version: 5
Re: notification of event registration has bad link for Contact Summary
October 11, 2012, 05:27:34 am
Hi,

Thank you for shedding light, I have been looking into the messageTemplates page and not realizing "Profiles - Admin Notification" is the message template for this.

Generates wrong information in the sense that, in a membership application form for new users, the email notification sent to admin pulls a different name and contact summary link than the ones provided in the application form and the actual contact page of the newly created user.

If this is the case, which file from CRM/Contribute should I look into that passes the values to the template file?

Thanks much for your help :)

« Last Edit: October 11, 2012, 05:31:12 am by mtem27 »

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: notification of event registration has bad link for Contact Summary
October 11, 2012, 09:37:58 am
ok - so there are a couple of things.

Pretty sure that the 'Profiles - Admin Notification' email gets sent because you have a profile on the contribution page which has 'notify when profile is submitted'.

I am not sure why that notification is sending the wrong contact info. But in any case, have you considered populating the cc/bcc receipt fields on this page: http://drupal.demo.civicrm.org/civicrm/admin/contribute/thankyou?reset=1&action=update&id=1. That might be a better solution for what you are trying to to do.  And it might sidestep this problem.

Might sound like a funny question, but I am interested to know if you know who the wrong contact is / why they might be being chosen?
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

mtem27

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.1
  • CMS version: 6
  • MySQL version: 5
  • PHP version: 5
Re: notification of event registration has bad link for Contact Summary
October 11, 2012, 05:56:51 pm
Hi again,

The incorrect contacts being associated were at random, sometimes they have the same first name, at times they have the same instance of the same word (for organization names), and other times totally no relation or something.

Really confusing, that's why I need to check which files/scripts are passing the values to the template.

I will try the CC/BCC part per your suggestion, but do you have an idea which file/function passes the value to the template?

Thank you so much.



Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: notification of event registration has bad link for Contact Summary
October 12, 2012, 02:10:30 am
Of the top of my head, no.  But profiles code is stored in CRM/Profile.

So faced with the task of where does X happen in the code, I tend to start with the UI and look for signs that will get me to the right place in the code.  Finding out what template is used to display the form would be a good start.  And then I would look at the postProcess method for that form, which is fired when the form is submitted and passes validation.

If you need more guidance it might be easier for you to jump on IRC where you can get help in real time :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • notification of event registration has bad link for Contact Summary

This forum was archived on 2017-11-26.