The user's profile data fields are not updated after you update the profile itself. So the cck fields get updated but the 'data' field in {users} table doesn't get updated.
I made a (ugly) patch for this. I'm not sure it is complete.

CommentFileSizeAuthor
profile_fields_not_updated.patch946 bytesandreiashu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andreiashu’s picture

I forgot to ask: why do we need to keep a copy of the profile's cck fields in the user's data field ?
It is 5 AM here so sorry if I asked a dumb question.

fago’s picture

there should be no such copy.. if it is, it's a bug. Probably caused by the hook_user integration.

fago’s picture

Status: Needs review » Fixed

Probably this is fixed with the fix of this issue: http://drupal.org/node/332998#comment-1123924

So please test the next generated development snapshot and make sure to have your menu cache cleared when testing, e.g. hit submit at the admin modules page after updating the module.

igorik’s picture

Status: Fixed » Active

I have to reopen it, the problem persists.
It is weird that the problem is with new profile nodes only.
The fields in exists profile nodes (in my case it names uprofile) are changed and storered correctly, doesn't matter if user is admin or basic user.

But nothing is stored in new created node profiles (after this module enabled).
It is weird that there is a register button ABOVE node profile inside register page. It looks as node profile it is not correctly loaded...? just an idea. I thought that that it was on end of the page before, but maybe I am wrong.

I tried the patch above but it doesn't help me.
I am using new generation dev version from today(or yesterday)

Igorik
http://www.somvprahe.sk

igorik’s picture

I found the problem is with all profile nodes created by content_profile.

I am using it last 4 days (testing) and I found that on these nodes no field is stored or updated.
before that I used drupal 5 and I did upgrade to drupal 6 a few days ago.
all fields from profile nodes from drupal 5 (created by node profile) are correctly updated and stored.
but nothing is stored when using content profile on new nodes created by content profile. Using conten profile for update fields on nodes created by node profile from drupal 5 works fine.

Igorik

fago’s picture

hum? What's the issue here? *confused*

Please report clearly what you edit where exactly, and where exactly it works and where not. Is profile module involved in here? Registration integration?

igorik’s picture

Hi

the issue: profile fields are not updated/stored

What I found later
this bug shows only on profile nodes created from starting using content_profile.
When I edit profile fields (using content_profile) on profiles created before I start using content_profile, these fields are updated correctly.
Sorry for my english. Please let me know if it is more clear now.

Thanks
Igorik
http://www.somvprahe.sk

fago’s picture

Which profile fields? content profile or core profile module profile?

>When I edit profile fields (using content_profile) on profiles created before I start using content_profile, these fields are updated correctly.
Are these profiles nodes?

Are you using the latest development snapshot?

igorik’s picture

content profile fields.
Yes, I am using the latest new generation dev. snapshot.

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Then what profiles are those?
>When I edit profile fields (using content_profile) on profiles created before I start using content_profile, these fields are updated correctly.

Does editing at node/XX/edit work?

Be sure to use the snapshot from 2008-Nov-25.

igorik’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I am Sorry, I was wrong. It was CCK Link issue that no fields were stored.
I am closing this by mistake reopened bug
Igor

seaneffel’s picture

Can you point me to the Link module issue that you found? I'm experiencing the same problem.

kenorb’s picture

Status: Active » Closed (fixed)

The same problem with latest content profile.
If there is solution, please provide any issue that solve that problem.
I've got CCK: 6.x-2.2
upgraded to CCK 6.x-2.5, the same problem

Created related Drupal support issue: #337182: Profile fields not updated in user data

kenorb’s picture

Status: Closed (fixed) » Active
kenorb’s picture

Status: Closed (fixed) » Needs review

Tested with updating userreference field and it's working fine
+1 for that patch

Environment:
Simple by going to: user/82/edit/parent (from admin where parent is the name of content profile)
and editing any cck field (tested with userreference), and basically without this patch it's not refreshing user->data

fago’s picture

Status: Needs review » Closed (works as designed)

The issues bug is "Profile fields not updated in user data" which is as it should be, as I already state in #2. The bug was, that it happened previously. This is fixed now.

So again: There should be no content profile data in user->data, if it is, it's not intended and thus a bug.