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) »
  • Problems saving profile field values
Pages: [1] 2

Author Topic: Problems saving profile field values  (Read 1982 times)

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Problems saving profile field values
June 06, 2012, 05:26:34 pm
CiviCRM 4.1.1 on Drupal 6

During membership signup, some profile data is not being saved to the database.  At present, it seems to be the new member's phone number and fax number that aren't saved.  The cell number IS saved.

When I look at the profile fields, they all seem to be the same.  However, if I try to preview the fields which aren't being saved (phone or fax), I get  this message:  " This CiviCRM profile field is view only."

The field is not marked as view only.  I looked at the database, and it's not marked View Only there either.

Does anyone have any ideas what could cause this and how to fix it?


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: Problems saving profile field values
June 06, 2012, 07:11:00 pm
can you provide a screenshot of your Profile Fields and Profile Preview
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

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 06, 2012, 08:24:02 pm
Certainly.  Looking at the previews, I see that the Cell field also seems to be "view only."  However, that field is being saved.


sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 06, 2012, 08:25:02 pm
More attachments

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 06, 2012, 08:27:06 pm
And and more...

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 06, 2012, 08:29:29 pm
Last one

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: Problems saving profile field values
June 06, 2012, 08:34:26 pm
you didn't mention that this was an 'on behalf of organisation' not that that matters unless we are missing important parts of the puzzle

these fields are being added to the Organisation or the Individual?
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

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 06, 2012, 08:43:29 pm
Ah, sorry.  Yes, it's membership OBO an organization.  The fields are applied to the organization.  And this is NOT the default OBO profile, it's a custom profile.

It's just such an odd thing, I have a handful of sites with the same setup, but I haven't run into this problem before.  The phone, fax & cell fields are standard Civi contact fields, not custom fields.  I'm using a custom template for the signup, but the changes I've made to are minimal - rearranging a couple of blocks and adding javascript to restrict choices for a field. 

It seems odd to me that a "view only" field would be displayed with an editable box.  Then again, I don't see any reason for those fields to be View Only.




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: Problems saving profile field values
June 07, 2012, 03:18:17 am
now you mention it - i have had a couple of instances where i have gone - oh how odd, those numbers are read-only

any chance you have them set to Primary, rather than Main or Home? Any such difference between the fields the are writeable and ones that are not?
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: Problems saving profile field values
June 07, 2012, 03:18:59 am
also is everyone seeing them the same as you are? if you masquerade as others is it consistently problematic?
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

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 07, 2012, 05:09:45 am
They were set up as Primary, but then I changed them to Main.  Unfortunately, that didn't help.

I know that anonymous users see them the same way, as do other logged in users.  Also, when I test the signup form the confirmation page DOES show the phone/fax numbers.  They're just not being saved in the database. 


sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 13, 2012, 05:37:30 am
Still not able to get these fields to save data.  So far I have:

  • Updated Civi to the most recent version
  • Deleted and recreated the troublesome fields
  • Tried setting the fields to View Only & saving then switching back
  • Tried creating a new profile using various types of Phone fields - they all come out as "View Only," no matter what I do

If anyone has other ideas, I'd really like to hear them.  Right now when a member joins online, only part of the information they type in is saved.   :-[

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 15, 2012, 12:16:19 pm
After a couple more hours of research & testing, I believe this is actually a bug and not something I'm doing. 

On the drupal 6 demo site, I created a new On Behalf Of profile with three phone numbers, Phone-Main, Fax-Main and Mobile-Main.  When I create a contribution and fill out those three fields, only two of the numbers are stored in the database.

In addition, when I click Preview for any of the phone fields Civi tells me that the field is View Only, even though it's not.  I don't know that it makes a difference for this problem, but it's confusing.


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: Problems saving profile field values
June 15, 2012, 01:31:01 pm

1. Can you check and see if this problem is also present in 4.2 on our sandbox

http://sandbox.drupal.civicrm.org/

2. From my fast failing memory, civi seems to have had issues collecting phone numbers of different types via profiles. I'm not sure if this bug was ever resolved

Would be great if you/your org could spend some time/resources on figuring out how to fix this issue(s)

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

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Problems saving profile field values
June 15, 2012, 01:53:58 pm
The same issues are still present in the 4.2 sandbox.  In fact, there, I had the same results I get from my own forms.

I created a profile with three phone number fields: Phone-Phone-Main, Phone-Fax-Main & Phone-Mobile-Main.  All three show up on the final contribution page confirmation, but only the last (Mobile) was saved to the contact.

I'm not much of a developer, but if you pointed me in the right direction, I could at least look at it a little. 

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Problems saving profile field values

This forum was archived on 2017-11-26.