I am using a date field (this then becomes a computed field to show age which is hidden on registration), a content taxonomy field, and regular text field in registration. They show up fine during registration and I've looked at the database (table user) and it appears that the values inserted are being saved there. The problem is that once logged in after registration the values aren't being pulled. This can be confirmed by visiting the /edit/profile page. There are no values there. If values are added in the /edit/profile page they then show up, get pulled and everything works fine. I've tried upgrading the module to the dev version and I'm still having the same problem. My permissions seem to be set correctly with anonymous users having edit and view permissions for all fields concerned as well as create and edit own permissions for content types involved. Thank you in advance for any feedback.
Comments
Comment #1
scalp CreditAttribution: scalp commentedSorry for the confusion, but I just double checked the database and it turns out that nothing is actually getting stored into table users from the content profile fields filled out during registration. All of the rest of what I wrote above still applies.
Comment #2
scalp CreditAttribution: scalp commentedDoes anyone know what tables I should be looking in to find out if it's actually saving to the db if users is not the right one?
Comment #3
fagousers is not the right one, the data gets stored in the CCK/node table as usual.
Comment #4
scalp CreditAttribution: scalp commentedThank you for the response fago. That confirmed that it's not saving anything until it is edited. I do have content field level permissions turned on, but I've granted anonymous permission to all of them to test this out. If it were a permissions issue I don't think that it would show up during the registration. Is this correct?
Comment #5
scalp CreditAttribution: scalp commentedCould you tell me what tables are installed with CP and CP registration? I think I'll try to do a fresh install of them after deleting the tables and files. Only did the files before.
Comment #6
scalp CreditAttribution: scalp commentedCould you tell me what tables are installed with CP and CP registration? I think I'll try to do a fresh install of them after deleting the tables and files. Only did the files before.
Comment #7
scalp CreditAttribution: scalp commentedSorry for the numerous posts, but I've found another issue that may help answer this. I have a view that is pulling some content from core profile question answers. Until a new user edits their content profile this view cannot pull the data. Once values are entered into the CP area the view will pull the responses from core profile.
Comment #8
scalp CreditAttribution: scalp commentedSo I've now done a fresh install of drupal 6.12. The only modules I have enabled outside of core are CP, CP registration, CCK with text fields. I created a simple text field in content type profile to be used on registration. Shows up fine, but a user's entry is not stored. Once logged in it can be edited then it shows. I'm using the dev version of CP and the newest stable version of CCK. Could this be a db issue? If so, what would I want to look for?
Comment #9
scalp CreditAttribution: scalp commentedFIXED!!!!!!!!!!!!!!!!!!!!!
I found the issue. I had a trigger set to redirect a user to a URL after logging in. This was stopping the content profile from being saved on registration. Remove the trigger and everything works fine. I'm in a bind though because I've had iffy results with the login destination module which is why I was using a trigger, but it is a much smaller bind than I was in. I don't know if this is technically a bug report for CP. I think it may have been having some negative effects on a view of mine also. May be a bug report for the core trigger module. If it helps to diagnose here's how to reproduce:
-install cck with text fields
-install cp with cp on registration
-set up a field to be displayed on registration
-set a trigger on the user tab to redirect to a URL after logging in
-try to setup a new user account
-once logged in you should notice that your response wasn't saved
-edit your cp and reenter a value in the textfield
-now it should be saved
Comment #10
ataxia CreditAttribution: ataxia commentedHey Scalp -
Thank you for posting nine times on this topic before figuring it out yourself! I have been struggling with this same issue for the past three days, and this was indeed the solution.
One question - what are you doing about login redirects now? I still need to do that, but it is more important to get users registered right now.
Thanks!
Ataxia
Comment #11
scalp CreditAttribution: scalp commentedAtaxia,
I'm glad that it helped. For redirects you may want to look into the Rules module. It seems to work better than the core Trigger module and can do a lot of the same things and more.
Comment #12
kiliweb CreditAttribution: kiliweb commentedThanks sclap !
I had the very same problem, and you slove it. (#9)
==> Content Profile don't like Login Destination.
Comment #13
renyi CreditAttribution: renyi commentedThanks for figuring out , sigh ......
Comment #14
suganyaM CreditAttribution: suganyaM commentedHi Scalp,
Your posting helped me alot. I am trying to redirect the user to their account page after successfull login. Can you please help me with the rules modules to implement the same.
Just help me about, what should be the condition and action. The action should be the dynamic url, based on the user uid, user/$user->uid/edit/profile. How to implement a dynamic url for the action.
Thanks in advance.
regards,
Suganya M
Comment #15
suganyaM CreditAttribution: suganyaM commentedHi guys,
Thanks.
I found the answer for my problem.
Token module has to be installed. Can use the token string for the dynamic url based on the logged in user.
The below link helped me alot.
http://drupal.org/node/298506
The best tutorial for the rules module can be found at
http://drupal.org/node/298482
Comment #16
kbk CreditAttribution: kbk commentedI was having a similar problem when using CP with the Rules Module and it was a Rule setting that was causing the problem. Solution here:
#493222: Trigger to redirect user to URL after login stops CP from saving data
Comment #17
kbk CreditAttribution: kbk commentedTo answer #5 and #6, Content Profile works by associating the "Authored by" field of a node with the User ID. CP doesn't use any new tables or fields (as far as I know.)
Just putting the answer in because I had this question when starting with Content Profile...