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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Possible Bug - having profile in use in two places generates duplicate emails
Pages: [1] 2

Author Topic: Possible Bug - having profile in use in two places generates duplicate emails  (Read 3728 times)

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
Possible Bug - having profile in use in two places generates duplicate emails
September 22, 2008, 12:25:16 am
I had been wondering why whenever someone filled out one of our profiles it was generating duplicate emails to the address specified in ProfileAdvanced Settings ie "Notify when profile form is submitted?"

Now I have just spotted that has just commenced with another Profile, and the only change I have made is that I have set it up to also be used in View/Edit User and Register New User as well as it being on standard Profile pages.

Not sure I can test this on 2.1 sandbox.
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: Possible Bug - having profile in use in two places generates duplicate emails
September 22, 2008, 03:01:41 pm
Quote
... filled out one of our profiles...

Does this mean completing a form at civicrm/profile/create or civicrm/profile/edit? OR does this mean completing the profile(s) within User Registration? OR all of the above ?
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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 03:19:31 pm
Hah - good questions. What I have observed is that it generates duplicate emails when a Profile is filled out via a civicrm/profile/edit?
or via View/Edit User

I can't test via /user/register as I am getting "A non-recoverable error has occurred. Could not find valid Key" messages at present. (I am allowed to show more than one profile here aren't I???)
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: Possible Bug - having profile in use in two places generates duplicate emails
September 22, 2008, 03:30:51 pm
Peter - Can you replicate your setup on demo and do some submits, then post back here and we'll look at the email output (they get written to the file system). You definitely should be able to put multiple profiles in the user registration form (and I just verified this with a quick experiment on my local 2.1 install).
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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 03:42:08 pm
Actually I think i did try but i have no idea if the email was generated. Would it have been?

Ha - slife saves me. Yes I tested around 4.30 pm local time NZST - ie 18 hours ago. Can you check that, or do you want me to run it again?

Profile = Pest Test = is set up as Profile, User Registration, View/Edit User Account
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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Possible Bug - having profile in use in two places generates duplicate emails
September 22, 2008, 04:00:26 pm

can u run your test again. i'm storing the emails on disk now :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 05:02:01 pm
will do. just getting this when i create a new contact on sandbox
backTrace

/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/Error.php, backtrace, 138
, handle,
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/PEAR.php, call_user_func, 912
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB.php, PEAR_Error, 966
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/PEAR.php, DB_Error, 574
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/common.php, raiseError, 1903
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/mysql.php, raiseError, 898
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/common.php, simpleQuery, 1216
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/DataObject.php, query, 2394
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/DataObject.php, _query, 1039
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/DAO.php, insert, 279
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/BAO/Log.php, save, 123
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Contact/BAO/Contact.php, register, 186
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Contact/BAO/Contact.php, add, 248
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Contact/Form/Edit.php, create, 678
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/Form.php, postProcess, 247
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/Controller.php, handle, 232
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Utils/Wrapper.php, run, 114
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/Invoke.php, run, 169
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/drupal/civicrm.module, invoke, 315
, civicrm_invoke,
/var/www/drupal-6.civicrm.org/public/includes/menu.inc, call_user_func_array, 346
/var/www/drupal-6.civicrm.org/public/index.php, menu_execute_active_handler, 18
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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Possible Bug - having profile in use in two places generates duplicate emails
September 22, 2008, 05:06:15 pm

i jsut reset the db there.can u log out and log back in etc

u might want to check with chris and ensure he's not sending an email via a profile hook. This is probably what is happening

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 05:07:17 pm
I will check but don't think we have done anything but the basics on this.

Just updated 'my account' for janet demouser using my test Profile and got this

/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/Error.php, backtrace, 138
, handle,
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/PEAR.php, call_user_func, 912
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB.php, PEAR_Error, 966
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/PEAR.php, DB_Error, 574
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/common.php, raiseError, 1903
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/mysql.php, raiseError, 898
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/common.php, simpleQuery, 1216
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/DataObject.php, query, 2394
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/DB/DataObject.php, _query, 1039
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/DAO.php, insert, 279
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/BAO/Log.php, save, 123
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Contact/BAO/Contact.php, register, 186
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Contact/BAO/Contact.php, add, 248
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Contact/BAO/Contact.php, create, 1406
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Profile/Form.php, createProfileContact, 596
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Profile/Form/Dynamic.php, postProcess, 127
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/Form.php, postProcess, 247
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/QuickForm/Action/Submit.php, mainProcess, 77
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/Controller.php, handle, 232
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Core/BAO/UFGroup.php, run, 537
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/drupal/civicrm.module, getEditHTML, 566
/var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/drupal/civicrm.module, civicrm_form_data, 442
, civicrm_user,
/var/www/drupal-6.civicrm.org/public/includes/module.inc, call_user_func_array, 450
/var/www/drupal-6.civicrm.org/public/modules/user/user.module, module_invoke, 2452
/var/www/drupal-6.civicrm.org/public/modules/user/user.pages.inc, _user_forms, 237
, user_profile_form,
/var/www/drupal-6.civicrm.org/public/includes/form.inc, call_user_func_array, 366
, drupal_retrieve_form,
/var/www/drupal-6.civicrm.org/public/includes/form.inc, call_user_func_array, 102
/var/www/drupal-6.civicrm.org/public/modules/user/user.pages.inc, drupal_get_form, 222
, user_edit,
/var/www/drupal-6.civicrm.org/public/includes/menu.inc, call_user_func_array, 346
/var/www/drupal-6.civicrm.org/public/index.php, menu_execute_active_handler, 18
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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 05:21:53 pm
Now getting
Sorry. A non-recoverable error has occurred.

The site administrator needs to enter a valid 'FROM Email Address' in Administer CiviCRM » Configure » Domain Information. The email address used may need to be a valid mail account with your email service provider.

Also odd that despite setting my profile to User Registration it isn't showing at http://drupal.demo.civicrm.org/user/register

Maybe I skipped a step in my hurry, but field was set to Public Pages etc etc.
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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 05:38:00 pm
Quote from: peterd on September 22, 2008, 05:21:53 pm
Now getting
Sorry. A non-recoverable error has occurred.

The site administrator needs to enter a valid 'FROM Email Address' in Administer CiviCRM » Configure » Domain Information. The email address used may need to be a valid mail account with your email service provider.

This is a valid error - we want to force admin to fix Domain From Email settings.

Quote from: peterd on September 22, 2008, 05:21:53 pm
Also odd that despite setting my profile to User Registration it isn't showing at http://drupal.demo.civicrm.org/user/register

Maybe I skipped a step in my hurry, but field was set to Public Pages etc etc.
This looks like a bug. The Nickname field belongs to "Contact" rather than "Individual" - which seems to be why that profile is not getting rendered. I'll file an issue tomorrow for this after a bit more snooping.
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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 05:49:20 pm
Quote from: Dave Greenberg on September 22, 2008, 05:38:00 pm
This is a valid error - we want to force admin to fix Domain From Email settings.
fine so long as it isn't inteferring with testing this. i will presume not.

[/quote]
This looks like a bug. The Nickname field belongs to "Contact" rather than "Individual" - which seems to be why that profile is not getting rendered. I'll file an issue tomorrow for this after a bit more snooping.

[/quote]
i will go try with a different field
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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 05:53:03 pm
okay - reran it with different field in profile. new user created. can you check if you got more than one email being generated
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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Possible Bug - having profile in use in two places generates duplicate emails
September 22, 2008, 09:37:43 pm

the demo system did not record any emails. whats the profile name and sequence of steps to reproduce the issue?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: Possible Bug - having profile in use in two places generates duplicate email
September 22, 2008, 09:51:19 pm
Profile http://drupal.demo.civicrm.org/civicrm/admin/uf/group?reset=1 is Pete Test

It has been set up to "Notify when profile form is submitted"

Go to http://drupal.demo.civicrm.org/user/2 (or your own My Account) and update using Edit >> Pete Test

and/or go to http://drupal.demo.civicrm.org/civicrm/profile/edit&gid=2&reset=1
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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Possible Bug - having profile in use in two places generates duplicate emails

This forum was archived on 2017-11-26.