i am running Drupal 7.23 on two different sites. I am running Bundle Copy 2.2 dev (also had this issue with 1.1). Trying to copy a content type called "podcast" from one site to the other.
I can export the bundle from one site, but the other site will not import it. I don't get any error messages. I hit Import, and it simply blinks back the blank Import dialog without importing the content type.
I am including the bundle of the content type I am trying to import for reference:
$data = array(
'bundles' => array(
'podcast' => (object) array(
'type' => 'podcast',
'name' => 'Podcast',
'base' => 'node_content',
'module' => 'node',
'description' => 'Use this content type to add a sermon (or other audio message) to the Sermon page.',
'help' => '',
'has_title' => '1',
'title_label' => 'Title',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'disabled' => '0',
'orig_type' => 'podcast',
'disabled_changed' => FALSE,
'bc_entity_type' => 'node',
),
),
'fields' => array(
'body' => array(
'entity_types' => array(
0 => 'node',
),
'translatable' => '0',
'settings' => array(),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_body' => array(
'value' => 'body_value',
'summary' => 'body_summary',
'format' => 'body_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_body' => array(
'value' => 'body_value',
'summary' => 'body_summary',
'format' => 'body_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'body',
'type' => 'text_with_summary',
'module' => 'text',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'summary' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'page',
1 => 'article',
2 => 'podcast',
3 => 'webform',
4 => 'upcoming_event',
),
),
),
'field_scripture_reference' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'max_length' => '255',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_scripture_reference' => array(
'value' => 'field_scripture_reference_value',
'format' => 'field_scripture_reference_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_scripture_reference' => array(
'value' => 'field_scripture_reference_value',
'format' => 'field_scripture_reference_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'field_scripture_reference',
'type' => 'text',
'module' => 'text',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'podcast',
),
),
),
'field_sermon_series' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'max_length' => '255',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_sermon_series' => array(
'value' => 'field_sermon_series_value',
'format' => 'field_sermon_series_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_sermon_series' => array(
'value' => 'field_sermon_series_value',
'format' => 'field_sermon_series_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'field_sermon_series',
'type' => 'text',
'module' => 'text',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'podcast',
),
),
),
'field_sermondate' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'max_length' => '255',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_sermondate' => array(
'value' => 'field_sermondate_value',
'format' => 'field_sermondate_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_sermondate' => array(
'value' => 'field_sermondate_value',
'format' => 'field_sermondate_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'field_sermondate',
'type' => 'text',
'module' => 'text',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'podcast',
),
),
),
'field_speaker' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'max_length' => '255',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_speaker' => array(
'value' => 'field_speaker_value',
'format' => 'field_speaker_format',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_speaker' => array(
'value' => 'field_speaker_value',
'format' => 'field_speaker_format',
),
),
),
),
),
'foreign keys' => array(
'format' => array(
'table' => 'filter_format',
'columns' => array(
'format' => 'format',
),
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'field_name' => 'field_speaker',
'type' => 'text',
'module' => 'text',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'value' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
),
'format' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'podcast',
),
),
),
'field_upload_sermon' => array(
'translatable' => '0',
'entity_types' => array(),
'settings' => array(
'display_field' => 0,
'display_default' => 0,
'uri_scheme' => 'public',
),
'storage' => array(
'type' => 'field_sql_storage',
'settings' => array(),
'module' => 'field_sql_storage',
'active' => '1',
'details' => array(
'sql' => array(
'FIELD_LOAD_CURRENT' => array(
'field_data_field_upload_sermon' => array(
'fid' => 'field_upload_sermon_fid',
'display' => 'field_upload_sermon_display',
'description' => 'field_upload_sermon_description',
),
),
'FIELD_LOAD_REVISION' => array(
'field_revision_field_upload_sermon' => array(
'fid' => 'field_upload_sermon_fid',
'display' => 'field_upload_sermon_display',
'description' => 'field_upload_sermon_description',
),
),
),
),
),
'foreign keys' => array(
'fid' => array(
'table' => 'file_managed',
'columns' => array(
'fid' => 'fid',
),
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'field_name' => 'field_upload_sermon',
'type' => 'file',
'module' => 'file',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
'deleted' => '0',
'columns' => array(
'fid' => array(
'description' => 'The {file_managed}.fid being referenced in this field.',
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'display' => array(
'description' => 'Flag to control whether this file should be displayed when viewing content.',
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
),
'description' => array(
'description' => 'A description of the file.',
'type' => 'text',
'not null' => FALSE,
),
),
'bundles' => array(
'node' => array(
0 => 'podcast',
),
),
),
),
'instances' => array(
'body' => array(
0 => array(
'label' => 'Body',
'widget' => array(
'type' => 'text_textarea_with_summary',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'weight' => '6',
'module' => 'text',
),
'settings' => array(
'display_summary' => TRUE,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'hidden',
'type' => 'text_default',
'weight' => '0',
'settings' => array(),
'module' => 'text',
),
'teaser' => array(
'label' => 'hidden',
'type' => 'text_summary_or_trimmed',
'settings' => array(
'trim_length' => 600,
),
'module' => 'text',
'weight' => 0,
),
),
'required' => FALSE,
'description' => '',
'field_name' => 'body',
'entity_type' => 'node',
'bundle' => 'podcast',
'deleted' => '0',
'default_value' => NULL,
),
),
'field_scripture_reference' => array(
0 => array(
'label' => 'Scripture Reference',
'widget' => array(
'weight' => '3',
'type' => 'text_textfield',
'module' => 'text',
'active' => 1,
'settings' => array(
'size' => '60',
),
),
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'text_default',
'weight' => '2',
'settings' => array(),
'module' => 'text',
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 1,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_scripture_reference',
'entity_type' => 'node',
'bundle' => 'podcast',
'deleted' => '0',
),
),
'field_sermon_series' => array(
0 => array(
'label' => 'Sermon Series',
'widget' => array(
'weight' => '2',
'type' => 'text_textfield',
'module' => 'text',
'active' => 1,
'settings' => array(
'size' => '60',
),
),
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'text_default',
'weight' => '1',
'settings' => array(),
'module' => 'text',
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 1,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_sermon_series',
'entity_type' => 'node',
'bundle' => 'podcast',
'deleted' => '0',
),
),
'field_sermondate' => array(
0 => array(
'label' => 'Date',
'widget' => array(
'weight' => '0',
'type' => 'text_textfield',
'module' => 'text',
'active' => 1,
'settings' => array(
'size' => '60',
),
),
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'text_default',
'weight' => '5',
'settings' => array(),
'module' => 'text',
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_sermondate',
'entity_type' => 'node',
'bundle' => 'podcast',
'deleted' => '0',
),
),
'field_speaker' => array(
0 => array(
'label' => 'Speaker',
'widget' => array(
'weight' => '4',
'type' => 'text_textfield',
'module' => 'text',
'active' => 1,
'settings' => array(
'size' => '60',
),
),
'settings' => array(
'text_processing' => '0',
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'text_default',
'weight' => '4',
'settings' => array(),
'module' => 'text',
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 0,
'description' => '',
'default_value' => NULL,
'field_name' => 'field_speaker',
'entity_type' => 'node',
'bundle' => 'podcast',
'deleted' => '0',
),
),
'field_upload_sermon' => array(
0 => array(
'label' => 'Upload Sermon',
'widget' => array(
'weight' => '5',
'type' => 'file_generic',
'module' => 'file',
'active' => 1,
'settings' => array(
'progress_indicator' => 'throbber',
'filefield_sources' => array(
'filefield_sources' => array(
'upload' => 'upload',
'attach' => 'attach',
'remote' => 0,
'clipboard' => 0,
'reference' => 0,
),
'source_attach' => array(
'path' => 'podcast',
'absolute' => '0',
'attach_mode' => 'move',
),
'source_imce' => array(
'imce_mode' => 0,
),
'source_reference' => array(
'autocomplete' => '0',
),
),
'insert' => 0,
'insert_absolute' => FALSE,
'insert_styles' => array(
0 => 'auto',
),
'insert_default' => array(
0 => 'auto',
),
'insert_class' => '',
'insert_width' => '',
),
),
'settings' => array(
'file_directory' => '',
'file_extensions' => 'mp3',
'max_filesize' => '',
'description_field' => 0,
'user_register_form' => FALSE,
),
'display' => array(
'default' => array(
'label' => 'above',
'type' => 'file_default',
'weight' => '3',
'settings' => array(),
'module' => 'file',
),
'teaser' => array(
'type' => 'hidden',
'label' => 'above',
'settings' => array(),
'weight' => 0,
),
),
'required' => 1,
'description' => '',
'field_name' => 'field_upload_sermon',
'entity_type' => 'node',
'bundle' => 'podcast',
'deleted' => '0',
),
),
),
);
Comments
Comment #1
RichaDaffodil commentedHi frednwright
I have imported the bundle on my local setup drupal 7.23,ctools 7.x-1.3 and it imported successfully with drupal set messages.Please let me know if you are getting any issue or getting any error message.Did you check the watchdogs when it blinks back ?
Comment #2
frednwright commentedHi,
Thanks for the response. I'm thinking that this is either a theme issue or a hosting issue. I can't import ANY content type on the site I'm having trouble with, but have been able to import into another site on another host running the same specs.
There is nothing in the logs - I cleared them out and tried importing to see if it would generate any errors, but nothing.
Any clues would be greatly appreciated!
fred
Comment #3
marty.true commentedI was having the same issue until I tried changing the "type" to a new name...
Original export dump:
Change to:
Comment #4
Anonymous (not verified) commentedHi xstatic,
I think that you have exported the code on the site in which the orignal_node_type bundle already exists. if the bundle already exists on the site then it will rewrite the content type but by changing the bundle name it will create the new bundle on the site.Please try to import the exported code using admin account.
Comment #5
benchesters commentedI have exactly the same problem as this, nothing happens. Did anyone manage to fix this?
Comment #6
jonlibrary commentedFor each field where it said
'bundle' => 'old_content_type'I changed it to
'bundle' => 'new_content_type'This appears to have worked (7.x-1.1).
Comment #7
fizk commentedYou need to change the bundle name when importing.
Comment #8
karolus commentedTo add to this topic, there may be a UX issue at hand, here, as well.
I was finding that the module was successfully importing a content type to one install, but not the other. I went rooting through the steps here, but found it was due to a different issue--a required module was enabled on the working site, but not on the broken one.
When I imported the bundle to the site that appeared broken, the dialog indicated a successful import, but the content type didn't show up. Once the module dependency was enabled, things worked as advertised.
Would it be possible to have information (like naming issues or module dependency issues) show up in the alert dialogs? This could avoid a lot of headaches!
Comment #9
fizk commented@karolus That sounds like you'd be interested in Features.