I have done a fresh install of Drupal 6.13. Once the install is complete I follow the instructions from http://drupal.org/node/517182 to install advanced profile kit. The documentation does not give required versions for the dependent modules so I install the recommended modules for Drupal 6 from each modules drupal project page. Everything behaves as expected until step 6. 6b checking the profile type auto creation does not create the uprofile content type. This I understand is not unexpected. When I try to use the cck import feature using the contenets of the uprofile.inc file I get page not found after I hit import. I can export, delete and reimport and of the default data types using this method.
Are there any recommendations for versions of compatible modules with APK? Any suggestion on what I may do to troubleshoot this?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Working.txt | 30.94 KB | ptrepoff |
Comments
Comment #1
Emyr42 commentedIs the module "Views content panes" enabled? (CTools group of /admin/build/modules)
Comment #2
michelleThe number of fields on the node type can cause the Content Copy module to time out. It works for some people and not others. I don't know if it's a difference in memory limits or what. CC isn't my module and I don't know anything about how it works. I am planning on taking out some of the fields, which will hopefully help with this.
As for the recommended versions, I think they will all work now except for possibly content profile. One of the things I'm planning to do for beta 2 is run through a test install on all recommended versions and see if any of them still need the dev.
I know this isn't really "fixed" for you, but it's the best I can offer. Import failures are out of my hands.
Michelle
Comment #3
ptrepoff commentedThe module Views content panes is enabled. I will follow up my import problem with cck. Thanks to all for responding.
Comment #4
ptrepoff commentedWhat version of Content Profile do you use?
Comment #5
markus_petrux commented@Michelle: I believe one thing that could be tried is splitting uprofile.inc into several parts. First, import the groups, then import 10 fields, then 10 more fields, and so on. The Content Copy module can process the same content type several times. It cannot update a field definition, but it can import a few fields at a time, in several import passes.
The problem reported here could be a PHP memory or max execution time issue, but this should be checked in the PHP logs. If no error is found in the logs, then it could be memory, so try increasing memory_limit option in PHP. Try with 128M.
The Content Copy module was recently enhanced (and this is included in CCK 2.5) to just perform a menu_rebuild() at the end of the import process. Before this change, there was a menu_rebuild() for each field.
Comment #6
michelle@markus_petrux: That doesn't work with the automated method, which is why I never considered it. Now that I've decided to ditch the automation and just have people use CC directly, that's not a bad idea. I would actually break it up by groups so people can pick and choose which groups to import if they don't want the whole thing.
Hijacking the issue for that new path. :) I'd love to have a working solution. This node type import has been a thorn in my side for far too long.
Michelle
Comment #7
ptrepoff commentedI have checked drupal, apache, and php logging and there are no errors relating to the import. I went through the .inc file one at a time and removed all the items that caused the page not found error. Such as occupation, facebook, etc. Attached is what worked for me. Does this help?
Comment #8
michelle@ptrepoff: The problem is that it's different for everyone, and sometimes inconsistant for the same person. I've installed APK dozens of times in testing and probably 90% of the time had no problem importing. The other 10% of the time I ran into timeout issues. Even the CCK devs aren't fond of Content Copy. It's a fickle little module.
I think breaking it up into groups is the best idea and the one least likely to cause problems. I may also offer a complete dump in an alternate file and let folks choose which one they want.
Michelle
Comment #9
ptrepoff commentedWhen I change the field type from varchar to text the import works fine. I know you were going to break of the import but I will likely still have my issue. Do you have any suggestions with this new information on what I may need to change on my configuration?
5 =>
array (
'label' => 'Occupation',
'field_name' => 'field_occupation',
'type' => 'text',
'widget_type' => 'text_textfield',
'change' => 'Change basic information',
'weight' => '-8',
'rows' => '1',
'size' => '60',
'description' => '',
'default_value' =>
array (
0 =>
array (
'value' => '',
'_error_element' => 'default_value_widget][field_occupation][0][value',
),
),
'default_value_php' => '',
'default_value_widget' =>
array (
'field_occupation' =>
array (
0 =>
array (
'value' => '',
'_error_element' => 'default_value_widget][field_occupation][0][value',
),
),
),
'group' => 'group_stats',
'required' => 0,
'multiple' => '0',
'text_processing' => '0',
'max_length' => '100',
'allowed_values' => '',
'allowed_values_php' => '',
'op' => 'Save field settings',
'module' => 'text',
'widget_module' => 'text',
'columns' =>
array (
'value' =>
array (
'type' => 'text', *****This changed from varchar to text *******
'length' => '100',
'not null' => false,
'sortable' => true,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'inline',
),
'teaser' =>
array (
'format' => 'default',
),
'full' =>
array (
'format' => 'default',
),
),
),
Comment #10
michelle@ptrepoff: These are questions for the CCK queue. APK doesn't actually do any of the legwork on this. I built this node type through the UI the normal way then I exported it to a file so others didn't have to build it all by hand. That's all. There's no magic and really nothing to do with APK except for a .inc file. So I can't answer any questions on what would be better or what variable to use because I had no involvment in that. It's simply an export file.
Michelle
Comment #11
ptrepoff commentedThanks for your time Michelle I appreciate it. I have posted in the cck ticket as well. If i find a solution I will post it here.
Comment #12
ptrepoff commentedIt would appear that the hosting company for my website is running something that was causing my issues. They were very vague on what it was. Sorry for wasting your time.
Comment #13
michelleNo worries. I still want to break up this import. I'm just trying to figure out what fields it makes sense to have and how best to group them and all that.
Michelle
Comment #14
michelleMerge with #575324: Revamp uprofile.inc