Unable to add fields / fieldgroups to panels
| Project: | Content Construction Kit (CCK) |
| Version: | 5.x-1.9 |
| Component: | Panels Integration |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
I'm using APK and Bio and for some reason the individual profile fields don't show as an option in the panels page anymore. It will allow me to post an entire user profile in one panel but before now I could choose the panel position for individual uprofile fields such as the "about me" and "interest" fields. I have two identical sites(one for testing) and it happened on both. On the test site I ran into an additional problem when I decided to delete APK and Bio and re install them to see if it would fix anything and now when I try to auto create the fields in APK again it says "You can't show more empty location forms than the maximum number of locations allowed for this content type." I tried to delete all the content that related to these modules but the only thing I can think of is maybe there is still a reference somewhere to the fields created from the first installation? Does anyone have an answer to either of these problems? If it matters I have "user Id" listed under arguments and "user uprofile" as a relationship. I'm pretty sure that was by default and nothing should have change since then.

#1
I'm having trouble following that. If I'm understanding correctly, you deleted the uprofile node type and, when you try to recreate it, you're getting complaints from the location module? Try disabling the location module long enough to import it.
Michelle
#2
I've never done an import. How would I do that? I'm guessing by location module you mean APK? I know that might be a dumb question but there is an actual "location" module (which I don't have installed). I've also attached screen shots to help clarify what I mean. In the first one I had just checked the auto create box and clicked save then it returned the screen in the screen shot with the pink error message. The second screen shot shows my original and main problem which is "user uprofile" fields are no longer options in the add content box on the panels page. If you'll notice I already have a "user uprofile" field shown in a panel but I put it there before I had this problem. Now if I delete that field I won't be able to add it back because it along with the other "user uprofile" fields and field groups are no longer accessible.
#3
"I've never done an import. How would I do that? "
That's what you're doing... You're importing the node type again since you deleted it.
"I'm guessing by location module you mean APK?"
No, I mean the location module.
The error message you are getting is: "You can't show more empty location forms than the maximum number of locations allowed for this content type." That would be from the location module. If you don't have that installed, then your site is very messed up.
This has nothing to do with APK other than you are trying to import the node type provided by APK. The import module is provided by CCK. I double checked and the uprofile export doesn't contain any reference to location, other than the text field which has nothing to do with this.
I'm not sure there's anything more I can tell you on this. You've got something pretty goofy going on with your site and it's hard for me to guess what it might be.
Michelle
#4
http://drupal.org/project/location is what I'm thinking of when you say location module but I don't think this is what you have in mind. Is the location module in a sub folder of some core or important module? From your last post though that sounds like it's not causing our problem but maybe I should try turning it off anyway. Just to be sure though, did I uninstall the modules correctly? I deleted all content associated with them (apk and bio) and then unchecked the modules and then deleted them from my server. I saw that bio has an uninstall routine which I ran after I had reinstalled them and then I had to install it again.
#5
Yes, that is the location module I am talking about. Please try the import again after turning it off. Since that is the module that is throwing an error, it should hopefully go through ok.
Michelle
#6
It won't let me un check the location box. Should I delete it then re upload it to my server?
#7
Check if there's any modules depending on it. You'll have to disable them first and then you can disable location. I talked to the location maintainer and he confirmed that disabling it while you do the import will get past that problem.
Michelle
#8
Thanks. That worked but ummm.... Now I'm back to my original problem. User uprofile fields aren't showing. Maybe it has something to do with what's on the context page. I have user ID as an argument, user uprofile as a relationship and nothing under context. Is that normal?
#9
I have the same problem, so perhaps I can shed more light on this Michelle. (His original problem, not the location one)
Upgraded to APK Beta (1), and AF Alpha 16. I have managed to get the .inc files working for the various contrib modules (privatemsg etc), and have cleared the cache in drupal twice. I have switched from using Nodeprofile to using Bio. Though the problem existed under Nodeprofile as well.
When I first pulled up the panel page and the User_profile panel which is marked as "Default" two of the panes (Topics I've participated In and My Visitors) worked fine and showed up. The Author_pane showed date joined and online status and that was all.
The other panes read:
Deleted/Missing Content type content_fieldgroup
or
Deleted/Missing Content type content_field
the "fieldgroup" ones turned out to be the result of the changes made to the contrib modules (user points, user badges etc). I removed those blocks, got the .inc files and cleared the cache. The Author_pane now worked fine.
The problem that persists are the content_field errors. These blocks used to contain the cck groups from the uprofile content type (Basic Info, Stats, Contact, Links). I tried removing them and adding a pane with "Node Context -> CCK Group -> selected group from drop down" but it doesn't show up, even though the uprofile is still intact, has all of the data and is linked via Bio.
My context page is identical to kswissboi37:
Arguments: User ID
Relationships: User Profile
Contexts: None
Any suggestions?
#10
"the "fieldgroup" ones turned out to be the result of the changes made to the contrib modules"
Those two have nothing to do with each other.
So what it comes down to is you are not able to get CCK working with Panels. I don't think there's anything I can do there... It's not really an APK issue. I've never had any problem getting those two working together but maybe there's something wierd in your config like php 4 or something.
I'll try moving this to CCK but I don't know if they'll be able to help you as they just added the panels integraton on request and don't really have time to maintain it. Not sure what else to tell you... Adding fields / fieldgroups to panels works just fine for me on every live/dev site I have.
Michelle
#11
Giving this a better title so the maintainers over there know what this is about.
Michelle
#12
@kswissboi37: Re location error (You can't show more empty...) try to modify the content type, open the Locative information fieldset, open the Number of locations fieldset, change the number of locations. I had the same problem and found inconsistent defaults causing it. Maybe you are having the same problem?
#13
I'm confused as to how that could be causing the problem and what exactly you want me to do. All the locations were set to 1 so I arbitrarily changed them to 5. Was that supposed to fix it? If so I'm still having the problem.
#14
then you are ok, and it was different for me: in my case the default values were inconsistent, and I had to make them consistent manually (otherwise I would get the same error that you reported).
#15
Won't happen for D5. Progress is being made from CCK2 for D6 and up.
#16
I have the same issue and there is a patch to location module that is suppose to correct this form validation error. http://drupal.org/files/issues/location.module_29.patch
It also should be applied to dev what I read. I have been dealing with this for months and it will prohibit you from creating any new profile content type without a validation error. I am going to test this now.