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) »
  • Activity not showing correct "added by" user - Wordpress
Pages: [1]

Author Topic: Activity not showing correct "added by" user - Wordpress  (Read 687 times)

vishram74

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.6.18
  • CMS version: Drupal 7x
  • MySQL version: 5.3
  • PHP version: 5.5
Activity not showing correct "added by" user - Wordpress
February 27, 2014, 08:36:48 pm
We are using wordpress  civicrm version 4.4.0

When creating an activity it is showing by default another users name in the "added by" field,
By right it should be the logged in user.

Any ideas?

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: Activity not showing correct "added by" user - Wordpress
March 06, 2014, 01:50:31 pm
Hi @Vishram74,

I've never used the WordPress version of CiviCRM, only Drupal. I have come across the problem you describe twice. It's nasty!

You'll notice if you go to the contact record or Drupal account page for the person attributed with having updated the record that the email address they have is the email of the person who actually did make the activity.

First, to solve, then to prevent. (I'll speak in Drupal terminology, you'll have to do some translating for WordPress, but probably not much.)

To solve.

You need to sever the connection between the CiviCRM contact and the Drupal user.

If the Drupal User has not created any content, then the easiest way to do this is to Delete the Drupal user. After you do that, immediately go to the contact record who has been incorrectly attributed for the activity. Correct the email there. Then recreate the Drupal account.

If it isn't desirable to delete the Drupal user account, then do the following:

Access your civicrm database and go to the table civicrm_uf_match. Find the record that incorrectly matches the CiviCRM contact ID to the Drupal ID. The field "uf_id" is the Drupal id. The field "contact_id" is the CiviCRM contact id. Edit that record to reflect the proper matching.

Prevent:

I'm not 100% sure about this but I have strong hunches it is the following: An administrative user to your site is logged in and wants to add a contribution or an event sign-up or any thing else to someone's record (NOT their own record). I'll use the example of adding a contribution. The administrator should go to: CiviCRM => Contributions => New Contribution and fill out the form there. But let's say we are not talking about recording a donation made by check, but rather that (likely breaking PCI Compliance), the donor gave her credit card number over the phone to the staff person with the intention of having the staff person process the transaction. Since you can't enter a credit card for processing in the admin section of the site, the staff person goes to a publicly facing donation page without logging out first. The result is that the donor's CiviCRM record becomes associated with the currently logged in administrative user. In order for this transaction to have been done "right" (again, this is probably breaking PCI compliance), the administrative user would have needed to log out before going to enter the transaction on a publicly facing page.

The example I gave is with contributions, but it can happen whenever a logged-in user goes to any publicly facing page that has a profile form on which a staff person fills on behalf of someone else.

Hope this helps. Do report back,

Best,

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

vishram74

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.6.18
  • CMS version: Drupal 7x
  • MySQL version: 5.3
  • PHP version: 5.5
Re: Activity not showing correct "added by" user - Wordpress
June 12, 2014, 02:45:46 am
Hi Shai

Thanks so much for your help
Apologies for the late reply I didnt see your reply till now.

I ended up deleting the user account and creating it again as per your suggestion and that seemed to work.

Thanks again :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Activity not showing correct "added by" user - Wordpress

This forum was archived on 2017-11-26.