2009-10-13 68 views
2

我一直在遇到某種內容類型的問題。 (任何時候我嘗試訪問該類型的節點時,我都會得到一個page not found錯誤。)所以我想我會導出並重新導入,以查看是否會更改任何內容。Drupal 6 CCK:導出/導入內容類型

我去了admin/content/types/export,並選擇了有問題的內容類型。然後我刪除了該類型。接下來,我去admin/content/types/import,並粘貼出口回

我選擇<create>和命中import,我也得到了以下的Drupal消息:

[error] An illegal choice has been detected. Please contact the site administrator. 
[info] An error has occurred adding the content type recruiting_form. 
Please check the errors displayed for more details. 

什麼我錯在這裏做什麼?

這是出口:

$content['type'] = array (
    'name' => 'Recruiting Form', 
    'type' => 'recruiting_form', 
    'description' => 'Form for prospective fencers', 
    'title_label' => 'Legal name', 
    'body_label' => '', 
    'min_word_count' => '0', 
    'help' => 'If you have any questions, contact $RECRUITING$. 
<br /> <br /> 
Once this form is submitted, you will not be able to view or edit it. Use the "preview" button to make sure everything is correct.', 
    'input_formats' => 
    array (
    1 => true, 
    0 => 1, 
    2 => false, 
    3 => false, 
    4 => false, 
    5 => false, 
), 
    'node_options' => 
    array (
    'status' => true, 
    'promote' => false, 
    'sticky' => false, 
    'revision' => false, 
), 
    'language_content_type' => '0', 
    'upload' => '1', 
    'old_type' => 'recruiting_form', 
    'orig_type' => '', 
    'module' => 'node', 
    'custom' => '1', 
    'modified' => '1', 
    'locked' => '0', 
    'comment' => '0', 
    'comment_default_mode' => '4', 
    'comment_default_order' => '1', 
    'comment_default_per_page' => '50', 
    'comment_controls' => '3', 
    'comment_anonymous' => '0', 
    'comment_subject_field' => '1', 
    'comment_preview' => '1', 
    'comment_form_location' => '0', 
); 
$content['groups'] = array (
    0 => 
    array (
    'label' => 'Basic Information', 
    'group_type' => 'standard', 
    'settings' => 
    array (
     'form' => 
     array (
     'style' => 'fieldset_collapsible', 
     'description' => '', 
    ), 
     'display' => 
     array (
     'description' => '', 
     'teaser' => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     'full' => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     4 => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     2 => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     3 => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     'token' => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     'label' => 'above', 
    ), 
    ), 
    'weight' => '2', 
    'group_name' => 'group_basic_info', 
), 
    1 => 
    array (
    'label' => 'Fencing Information', 
    'group_type' => 'standard', 
    'settings' => 
    array (
     'form' => 
     array (
     'style' => 'fieldset_collapsible', 
     'description' => '', 
    ), 
     'display' => 
     array (
     'description' => '', 
     'teaser' => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     'full' => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     4 => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     2 => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     3 => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     'token' => 
     array (
      'format' => 'fieldset', 
      'exclude' => 0, 
     ), 
     'label' => 'above', 
    ), 
    ), 
    'weight' => '11', 
    'group_name' => 'group_fencing_information', 
), 
); 
$content['fields'] = array (
    0 => 
    array (
    'label' => 'Email', 
    'field_name' => 'field_email', 
    'type' => 'email', 
    'widget_type' => 'email_textfield', 
    'change' => 'Change basic information', 
    'weight' => '1', 
    'size' => '60', 
    'description' => '', 
    'default_value' => 
    array (
     0 => 
     array (
     'email' => '', 
    ), 
    ), 
    'default_value_php' => '', 
    'default_value_widget' => NULL, 
    'group' => 'group_basic_info', 
    'required' => 1, 
    'multiple' => '0', 
    'op' => 'Save field settings', 
    'module' => 'email', 
    'widget_module' => 'email', 
    'columns' => 
    array (
     'email' => 
     array (
     'type' => 'varchar', 
     'length' => 255, 
     'not null' => false, 
     'sortable' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    1 => 
    array (
    'label' => 'Matriculation', 
    'field_name' => 'field_matriculation', 
    'type' => 'datetime', 
    'widget_type' => 'date_text', 
    'change' => 'Change basic information', 
    'weight' => '2', 
    'default_value' => 'blank', 
    'default_value2' => 'same', 
    'default_value_code' => '', 
    'default_value_code2' => '', 
    'input_format' => 'm/d/Y - g:i:sa', 
    'input_format_custom' => 'Y', 
    'advanced' => 
    array (
     'label_position' => 'above', 
     'text_parts' => 
     array (
     'year' => 0, 
     'month' => 0, 
     'day' => 0, 
     'hour' => 0, 
     'minute' => 0, 
     'second' => 0, 
    ), 
    ), 
    'increment' => 1, 
    'year_range' => '-3:+3', 
    'label_position' => 'above', 
    'text_parts' => 
    array (
    ), 
    'description' => 'Expected year of matriculation into college', 
    'group' => 'group_basic_info', 
    'required' => 1, 
    'multiple' => '0', 
    'repeat' => 0, 
    'todate' => '', 
    'granularity' => 
    array (
     'year' => 'year', 
    ), 
    'default_format' => 'medium', 
    'tz_handling' => 'none', 
    'timezone_db' => 'America/New_York', 
    'op' => 'Save field settings', 
    'module' => 'date', 
    'widget_module' => 'date', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'datetime', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    2 => 
    array (
    'label' => 'Name of High School', 
    'field_name' => 'field_hs_name', 
    'type' => 'text', 
    'widget_type' => 'text_textfield', 
    'change' => 'Change basic information', 
    'weight' => '3', 
    'rows' => 5, 
    'size' => '60', 
    'description' => '', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_hs_name' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_hs_name][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_basic_info', 
    'required' => 0, 
    'multiple' => '0', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'text', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    3 => 
    array (
    'label' => 'GPA', 
    'field_name' => 'field_gpa', 
    'type' => 'number_float', 
    'widget_type' => 'number', 
    'change' => 'Change basic information', 
    'weight' => '4', 
    'description' => '4.0 scale. If your school doesn\'t have GPA, leave it blank.', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_gpa' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_gpa][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_basic_info', 
    'required' => 0, 
    'multiple' => '0', 
    'min' => '0', 
    'max' => '4', 
    'prefix' => '', 
    'suffix' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'number', 
    'widget_module' => 'number', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'float', 
     'not null' => false, 
     'sortable' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    4 => 
    array (
    'label' => 'SAT', 
    'field_name' => 'field_sat', 
    'type' => 'number_integer', 
    'widget_type' => 'number', 
    'change' => 'Change basic information', 
    'weight' => '5', 
    'description' => 'Cumulative SAT score', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_sat' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_sat][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_basic_info', 
    'required' => 0, 
    'multiple' => '0', 
    'min' => '0', 
    'max' => '2400', 
    'prefix' => '', 
    'suffix' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'number', 
    'widget_module' => 'number', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'int', 
     'not null' => false, 
     'sortable' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    5 => 
    array (
    'label' => 'ACT', 
    'field_name' => 'field_act', 
    'type' => 'number_integer', 
    'widget_type' => 'number', 
    'change' => 'Change basic information', 
    'weight' => '6', 
    'description' => 'Cumulative ACT score', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_act' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_act][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_basic_info', 
    'required' => 0, 
    'multiple' => '0', 
    'min' => '0', 
    'max' => '36', 
    'prefix' => '', 
    'suffix' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'number', 
    'widget_module' => 'number', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'int', 
     'not null' => false, 
     'sortable' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    6 => 
    array (
    'label' => 'College(s)', 
    'field_name' => 'field_colleges', 
    'type' => 'text', 
    'widget_type' => 'optionwidgets_select', 
    'change' => 'Change basic information', 
    'weight' => '7', 
    'description' => 'colleges to which you are applying (2 at most)', 
    'default_value' => 
    array (
     0 => 
     array (
     'value' => NULL, 
    ), 
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_colleges' => 
     array (
     'value' => 
     array (
      0 => NULL, 
     ), 
    ), 
    ), 
    'group' => 'group_basic_info', 
    'required' => 0, 
    'multiple' => '2', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => 'Arts and Sciences 
Industrial Labor Relations 
Hotel Administration 
Human Ecology 
Agriculture and Life Sciences 
Engineering 
Art, Architecture, and Planning', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'optionwidgets', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    7 => 
    array (
    'label' => 'Intended Major', 
    'field_name' => 'field_intended_major', 
    'type' => 'text', 
    'widget_type' => 'text_textfield', 
    'change' => 'Change basic information', 
    'weight' => '8', 
    'rows' => 5, 
    'size' => '60', 
    'description' => '', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_intended_major' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_intended_major][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_basic_info', 
    'required' => 0, 
    'multiple' => '0', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'text', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    8 => 
    array (
    'label' => 'Weapons', 
    'field_name' => 'field_weapons', 
    'type' => 'text', 
    'widget_type' => 'optionwidgets_select', 
    'change' => 'Change basic information', 
    'weight' => '12', 
    'description' => 'Which weapons do you fence?', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_weapons' => 
     array (
     'value' => 
     array (
     ), 
    ), 
    ), 
    'group' => 'group_fencing_information', 
    'required' => 0, 
    'multiple' => '3', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => 'Saber 
Foil 
Epee 
', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'optionwidgets', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    9 => 
    array (
    'label' => 'USFA Rating', 
    'field_name' => 'field_rating', 
    'type' => 'text', 
    'widget_type' => 'text_textfield', 
    'change' => 'Change basic information', 
    'weight' => '13', 
    'rows' => 5, 
    'size' => '60', 
    'description' => 'If you have ratings in multiple weapons, please list them all.', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_rating' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_rating][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_fencing_information', 
    'required' => 0, 
    'multiple' => '0', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'text', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    10 => 
    array (
    'label' => 'Significant Competitive Results', 
    'field_name' => 'field_significant_results', 
    'type' => 'text', 
    'widget_type' => 'text_textarea', 
    'change' => 'Change basic information', 
    'weight' => '14', 
    'rows' => '10', 
    'size' => 60, 
    'description' => '(JOs, NACs, etc) 

Please include how many competitors there were in the event, what it was rated, and the date. 

Example: 3rd/222 in Div2 Men\'s Foil, Summer Nationals 2007 ', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_significant_results' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_significant_results][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_fencing_information', 
    'required' => 0, 
    'multiple' => '0', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'text', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    11 => 
    array (
    'label' => 'Years of Experience', 
    'field_name' => 'field_years_of_experience', 
    'type' => 'number_float', 
    'widget_type' => 'number', 
    'change' => 'Change basic information', 
    'weight' => '15', 
    'description' => '', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'fie 
+0

我想在本地測試安裝中嘗試發佈的導出,但它被截斷。 – 2009-10-14 18:18:15

+0

我發佈了其餘的答案 – 2009-10-15 02:05:14

回答

0

這裏是出口的其餘部分:

array (
    'label' => 'Years of Experience', 
    'field_name' => 'field_years_of_experience', 
    'type' => 'number_float', 
    'widget_type' => 'number', 
    'change' => 'Change basic information', 
    'weight' => '15', 
    'description' => '', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_years_of_experience' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_years_of_experience][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_fencing_information', 
    'required' => 1, 
    'multiple' => '0', 
    'min' => '0', 
    'max' => '30', 
    'prefix' => '', 
    'suffix' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'number', 
    'widget_module' => 'number', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'float', 
     'not null' => false, 
     'sortable' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    12 => 
    array (
    'label' => 'Club', 
    'field_name' => 'field_club', 
    'type' => 'text', 
    'widget_type' => 'text_textfield', 
    'change' => 'Change basic information', 
    'weight' => '16', 
    'rows' => 5, 
    'size' => '60', 
    'description' => 'Name of club(s) at which you train, currently or in the past', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_club' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_club][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_fencing_information', 
    'required' => 0, 
    'multiple' => '1', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'text', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    13 => 
    array (
    'label' => 'Coach', 
    'field_name' => 'field_coach', 
    'type' => 'text', 
    'widget_type' => 'text_textfield', 
    'change' => 'Change basic information', 
    'weight' => '17', 
    'rows' => 5, 
    'size' => '60', 
    'description' => 'Coach(es) with whom you have worked (currently or in the past)', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_coach' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_coach][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_fencing_information', 
    'required' => 0, 
    'multiple' => '1', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'text', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
    14 => 
    array (
    'label' => 'Other Fencing Accomplishments', 
    'field_name' => 'field_other_accomplishments', 
    'type' => 'text', 
    'widget_type' => 'text_textarea', 
    'change' => 'Change basic information', 
    'weight' => '18', 
    'rows' => '10', 
    'size' => 60, 
    'description' => '(Captain of team, other awards won, etc) ', 
    'default_value' => 
    array (
    ), 
    'default_value_php' => '', 
    'default_value_widget' => 
    array (
     'field_other_accomplishments' => 
     array (
     0 => 
     array (
      'value' => '', 
      '_error_element' => 'default_value_widget][field_other_accomplishments][0][value', 
     ), 
    ), 
    ), 
    'group' => 'group_fencing_information', 
    'required' => 0, 
    'multiple' => '0', 
    'text_processing' => '0', 
    'max_length' => '', 
    'allowed_values' => '', 
    'allowed_values_php' => '', 
    'op' => 'Save field settings', 
    'module' => 'text', 
    'widget_module' => 'text', 
    'columns' => 
    array (
     'value' => 
     array (
     'type' => 'text', 
     'size' => 'big', 
     'not null' => false, 
     'sortable' => true, 
     'views' => true, 
    ), 
    ), 
    'display_settings' => 
    array (
     'label' => 
     array (
     'format' => 'above', 
     'exclude' => 0, 
    ), 
     'teaser' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'full' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     4 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     2 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     3 => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
     'token' => 
     array (
     'format' => 'default', 
     'exclude' => 0, 
    ), 
    ), 
), 
); 
$content['extra'] = array (
    'title' => '-5', 
    'menu' => '-4', 
    'attachments' => '-3', 
); 
0

好,結合兩個片段(爲什麼你把它分解後是否有大小限制在這裏發佈?)並安裝兩個丟失的CCK模塊,我能夠將內容類型導入到我的本地測試實例中。從中創建節點起作用,並在之後查看它。

總之 - 無法重現:/

所以別的東西肯定有問題你的Drupal實例導致此。我不知道這可能是什麼,但我會開始嘗試導入另一個(更簡單的)內容類型,以查看您的導入功能是否通常被破壞或僅僅用於此特定導入。

如果這個錯誤只是爲了這個導入而發生,我下次嘗試會忽略導入問題並嘗試調試404 for recruiting_form內容,因爲這可能是相關的,並且可能更易於調試。您可以先將

$ trace = debug_backtrace();

進入drupal_not_found()函數 - 要麼是var_dump()它的輸出或使用調試器查看它。跟蹤應該指向發出404的函數。

如果要解決導入問題,我會開始在代碼庫中搜索「非法選擇」錯誤消息(通常來自通用表單驗證),並且檢查那裏的狀態 - 使用調試器和/或跟蹤語句,您可能能夠查明錯誤的原因,這可能會提示錯誤的提示。

祝你好運!

+0

是的,最初我發佈了整個事情,但是SO截斷了它,所以我將剩下的內容公佈在答案中。 – 2009-10-15 18:57:47

0

相信問題如何使用contrib模塊進行節點類型創建過程。

解決方法是...

  1. 創建一個新的內容類型(只是名字就行了。)
  2. 在這個存根上運行你自己的進口(用正確的機器名)內容類型。

當然可以用一個巨大的怪物節點類型爲我工作。