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 saving correctly in civicrm 2.2
Pages: [1]

Author Topic: Activity not saving correctly in civicrm 2.2  (Read 1442 times)

mlampard

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 3
Activity not saving correctly in civicrm 2.2
June 09, 2009, 09:06:57 am
Civicrm 2.2 on Linux 2.6.18 kernel, Apache 2.2.11, PHP 5.2.9, MySQL 5.0.77, Drupal 6.10.

I have a very bizarre thing happening - on one client machine (Windows XP Pro SP3, running IE 7.0.5730.11), when saving a new activity (phone call, meeting etc), the entry is being written into the civicrm_activity table, but NOT into the civicrm_activity_target table! This does not happen with Safari or Firefox and I don't have another user on IE 7, so have not tested that yet....

Now, before you tell me this is not possible (I keep telling myself that), here is what's happening:
User logs in as "laura" on IE.
Adds new Phone Call.
Message back says "Activity saved.....", but activity is not there.
I go into the DB and the activity is there in the activity table, but not the activity_target table.
User logs in as "laura" on Firefox (on same machine)
Adds new phone call
Message back says "Activity saved..." and activity IS there (i.e. it's in both the activity and activity_target tables)!
User logs in as "testuser" on IE
Adds new Phone Call
Message back says "Activity saved.....", but activity is not there.
I go into the DB and the activity is there in the activity table, but not the activity_target table.

So, it "appears" to be a machine-specific/browser-specific problem, not a user specific problem.

Before I spend countless more hours trying to track this down, I want to be sanity checked here, if possible....
To my way of thinking, this is not possible - the browser posts data to PHP server side script. The script then takes over and writes data to the database. If the data is being written to one table, then how is it possible that it's not getting written to the second table, unless there's an intermediate browser step or some of the posted data is getting corrupted? I've tried turning debugging on, but it gives me no help. According to civicrm, everything is working just fine! My best guess is posted data corruption, but then I would have thought that civicrm would pick that up and reject the data..... or perhaps it's losing the plot and is not able to determine the target contact ID... or....?? Any thoughts? What am I missing here?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Activity not saving correctly in civicrm 2.2
June 09, 2009, 10:41:38 am
The target contact value comes from a dojo (ajax) auto-complete field. So my suspicion is that the dojo widget is not functioning properly in the IE7 browser. We had a separate report a few weeks back of a different problem with a dojo widget and IE7 - so I'm not too surprised about this. For the upcoming 2.3, dojo is being replace with jQuery - and we expect to have better cross browser support. I'd probably just have your users switch to FireFox or Safari for now if that's an option.

NOTE: Since we only have minimal use of dojo widgets in public / front-end pages - I'm not aware of IE problems in those "not controllable" contexts.
Protect your investment in CiviCRM by  becoming a Member!

mlampard

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 3
Re: Activity not saving correctly in civicrm 2.2
June 09, 2009, 11:33:22 am
Thanks Dave,
This has been driving me nuts for a couple of weeks - thought I was going crazy ;-)
Cheers,
Marty.

mlampard

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 3
Re: Activity not saving correctly in civicrm 2.2
June 26, 2009, 02:33:19 pm
OK, just to add to this... did some more testing and it's NOT just IE that doesn't save the activities! Firefox is also sometimes not saving activities in the activity_target table! Sometimes it will and sometimes it won't (making it extraordinarily difficult to troubleshoot) I'm assuming the response will be to "wait for 2.3..." - Is there anyone else out there having this problem??
Cheers,
Marty.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Activity not saving correctly in civicrm 2.2

This forum was archived on 2017-11-26.