I tried to do an export/import of the following node (created by webform). The import just does nothing; I paste in the following, click on Import, the page refreshes, but the node does not exist. Shame. I'm off to manually create the node from scratch.
array(
(object) array(
'vid' => '546',
'uid' => '1',
'title' => 'Enrolment form',
'log' => '',
'status' => '1',
'comment' => '1',
'promote' => '1',
'sticky' => '0',
'vuuid' => '7141f0d8-2eb9-4d39-9e12-3bd3fc1fa996',
'nid' => '546',
'type' => 'webform',
'language' => 'und',
'created' => '1355964402',
'changed' => '1355970236',
'tnid' => '0',
'translate' => '0',
'uuid' => '64366c6e-36df-44c8-afe9-9f15fb58b244',
'revision_timestamp' => '1355970236',
'revision_uid' => '1',
'body' => array(),
'rdf_mapping' => array(
'rdftype' => array(
'sioc:Item',
'foaf:Document',
),
'title' => array(
'predicates' => array(
'dc:title',
),
),
'created' => array(
'predicates' => array(
'dc:date',
'dc:created',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'changed' => array(
'predicates' => array(
'dc:modified',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'body' => array(
'predicates' => array(
'content:encoded',
),
),
'uid' => array(
'predicates' => array(
'sioc:has_creator',
),
'type' => 'rel',
),
'name' => array(
'predicates' => array(
'foaf:name',
),
),
'comment_count' => array(
'predicates' => array(
'sioc:num_replies',
),
'datatype' => 'xsd:integer',
),
'last_activity' => array(
'predicates' => array(
'sioc:last_activity_date',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
),
'webform' => array(
'nid' => '546',
'confirmation' => "
Thank you! We will take a look at your information and get back to you as soon as possible. Please don't hesitate to contact us in the meantime using the website contact form.
\r\n",
'confirmation_format' => 'filtered_html',
'redirect_url' => '',
'status' => '1',
'block' => '0',
'teaser' => '0',
'allow_draft' => '0',
'auto_save' => '0',
'submit_notice' => '1',
'submit_text' => '',
'submit_limit' => '-1',
'submit_interval' => '-1',
'total_submit_limit' => '-1',
'total_submit_interval' => '-1',
'record_exists' => TRUE,
'roles' => array(
'1',
'2',
),
'emails' => array(),
'components' => array(
1 => array(
'nid' => 546,
'cid' => '1',
'pid' => '0',
'form_key' => 'first_name',
'name' => 'First name',
'type' => 'textfield',
'value' => '',
'extra' => array(
'title_display' => 'before',
'private' => 0,
'disabled' => 0,
'unique' => 0,
'width' => '',
'maxlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'description' => '',
'attributes' => array(),
),
'mandatory' => '1',
'weight' => '0',
'page_num' => 1,
),
2 => array(
'nid' => 546,
'cid' => '2',
'pid' => '0',
'form_key' => 'surname',
'name' => 'Surname',
'type' => 'textfield',
'value' => '',
'extra' => array(
'title_display' => 'before',
'private' => 0,
'disabled' => 0,
'unique' => 0,
'width' => '',
'maxlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'description' => '',
'attributes' => array(),
),
'mandatory' => '1',
'weight' => '1',
'page_num' => 1,
),
3 => array(
'nid' => 546,
'cid' => '3',
'pid' => '0',
'form_key' => 'skype_username',
'name' => 'Skype username',
'type' => 'textfield',
'value' => '',
'extra' => array(
'title_display' => 'before',
'private' => 0,
'disabled' => 0,
'unique' => 0,
'width' => '',
'maxlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'description' => '',
'attributes' => array(),
),
'mandatory' => '1',
'weight' => '2',
'page_num' => 1,
),
4 => array(
'nid' => 546,
'cid' => '4',
'pid' => '0',
'form_key' => 'e_mail',
'name' => 'E-mail',
'type' => 'email',
'value' => '',
'extra' => array(
'title_display' => 'before',
'private' => 0,
'disabled' => 0,
'unique' => 0,
'width' => '',
'description' => '',
'attributes' => array(),
),
'mandatory' => '1',
'weight' => '3',
'page_num' => 1,
),
8 => array(
'nid' => 546,
'cid' => '8',
'pid' => '0',
'form_key' => 'level',
'name' => 'Current level of Thai',
'type' => 'select',
'value' => '',
'extra' => array(
'items' => "0|Absolute beginner\r\n1|Elementary\r\n2|Intermediate\r\n3|Advanced",
'multiple' => 0,
'title_display' => 'before',
'private' => 0,
'aslist' => 0,
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'custom_keys' => FALSE,
'options_source' => '',
),
'mandatory' => '0',
'weight' => '4',
'page_num' => 1,
),
9 => array(
'nid' => 546,
'cid' => '9',
'pid' => '0',
'form_key' => 'number_of_lessons_purchased',
'name' => 'Number of lessons purchased',
'type' => 'select',
'value' => '',
'extra' => array(
'items' => "1|1\r\n5|5\r\n10|10",
'multiple' => 0,
'title_display' => 'before',
'private' => 0,
'aslist' => 0,
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'custom_keys' => FALSE,
'options_source' => '',
),
'mandatory' => '1',
'weight' => '5',
'page_num' => 1,
),
12 => array(
'nid' => 546,
'cid' => '12',
'pid' => '0',
'form_key' => 'where_do_you_live',
'name' => 'Where do you live?',
'type' => 'textfield',
'value' => '',
'extra' => array(
'description' => 'We need to know where you live so that we can work out the time difference between where you are and where we are in Thailand. If you live in some small village, please give the nearest big town so that we can find out the timezone.',
'title_display' => 'before',
'private' => 0,
'disabled' => 0,
'unique' => 0,
'width' => '',
'maxlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'attributes' => array(),
),
'mandatory' => '0',
'weight' => '6',
'page_num' => 1,
),
10 => array(
'nid' => 546,
'cid' => '10',
'pid' => '0',
'form_key' => 'when_would_you_like_your_first_lesson',
'name' => 'What date would you like your first lesson?',
'type' => 'date',
'value' => '',
'extra' => array(
'timezone' => 'user',
'title_display' => 'before',
'private' => 0,
'datepicker' => 1,
'year_textfield' => 0,
'start_date' => '0 years',
'end_date' => '+1 years',
'description' => '',
),
'mandatory' => '0',
'weight' => '8',
'page_num' => 1,
),
11 => array(
'nid' => 546,
'cid' => '11',
'pid' => '0',
'form_key' => 'what_time_would_you_like_your_first_lesson',
'name' => 'What time would you like your first lesson?',
'type' => 'time',
'value' => '',
'extra' => array(
'description' => 'Please give the time based on your own time zone. We will convert this into time in Thailand (which will have to be from 9:00 a.m. to 5 p.m.)',
'timezone' => 'user',
'title_display' => 'before',
'private' => 0,
'hourformat' => '24-hour',
'minuteincrements' => '15',
),
'mandatory' => '0',
'weight' => '10',
'page_num' => 1,
),
7 => array(
'nid' => 546,
'cid' => '7',
'pid' => '0',
'form_key' => 'comments',
'name' => 'Any other comments',
'type' => 'textarea',
'value' => '',
'extra' => array(
'title_display' => 0,
'private' => 0,
'resizable' => 1,
'disabled' => 0,
'cols' => '',
'rows' => '',
'description' => '',
'attributes' => array(),
),
'mandatory' => '0',
'weight' => '11',
'page_num' => 1,
),
),
'conditionals' => array(),
),
'cid' => '0',
'last_comment_timestamp' => '1355964402',
'last_comment_name' => NULL,
'last_comment_uid' => '1',
'comment_count' => '0',
'name' => 'admin',
'picture' => '0',
'data' => 'b:0;',
'path' => array(
'pid' => '1',
'source' => 'node/546',
'alias' => 'content/enrolment-form',
'language' => 'und',
),
'menu' => NULL,
'node_export_drupal_version' => '7',
),
)
Comments
Comment #1
Offlein CreditAttribution: Offlein commentedI'm experiencing this exact thing.
Comment #2
ice5nake CreditAttribution: ice5nake commentedI am having a similar problem in 6.x and I traced it to the node revision for the node not being in the node_revisions table. Still trying to track down what about the import causes this to happen.
The nodes are actually in the database with the exception of the nodes current revision. I am using an older version of the revisioning module so I am going to update that and cross my fingers.
Comment #3
danielb CreditAttribution: danielb commentedSorry this is not an actionable bug report. You'd need to narrow the problem down a bit more, as to use your import code I would need to configure my site to be exactly like yours.