White Screen of Death on Importing CCK Content Type with a Date-Time Field
Importing a CCK content type with fields, that had just been exported from an identical site (did some work offline) failed with the oh-so-helpful white screen o' death (aka whitescreen, blank page).
Found no reports about this in the CCK issue queue or online elsewhere. Through cutting out parts until it worked, Agaric has been able to identify the field calling the error.
Here is the problematic field's definition, as excerpted from the export output we were trying to input into the import:
<?php
3 =>
array (
'label' => 'Time',
'field_name' => 'field_runduration',
'type' => 'duration',
'widget_type' => 'duration_combo',
'change' => 'Change basic information',
'weight' => '51',
'use_weeks' => 0,
'largest_metric' => 'hours',
'smallest_metric' => 'seconds',
'description' => '',
'default_value' =>
array (
0 =>
array (
'duration' =>
Duration::__set_state(array(
'duration' =>
array (
'hours' => 0,
'minutes' => '0',
'seconds' => '0',
),
'is_negative' => false,
'is_valid' => true,
'conversion_factors' =>
array (
'seconds/minutes' => 60,
'minutes/hours' => 60,
'hours/days' => 24,
'days/weeks' => 7,
'days/months' => 30,
'weeks/years' => 52.1428571429,
'months/years' => 12,
),
)),
'iso8601' => 'PT0S',
'approx_seconds' => 0,
),
),
'default_value_php' => '',
'default_value_widget' =>
array (
'field_runduration' =>
array (
0 =>
array (
'type' => 'months',
'years' => 0,
'months' => 0,
'days' => 0,
'hours' => 0,
'minutes' => '0',
'seconds' => '0',
),
),
),
'group' => false,
'required' => 0,
'multiple' => '0',
'op' => 'Save field settings',
'module' => 'duration',
'widget_module' => 'duration',
'columns' =>
array (
'iso8601' =>
array (
'type' => 'varchar',
'length' => '64',
'not null' => true,
'default' => '',
),
'approx_seconds' =>
array (
'type' => 'int',
'unsigned' => true,
'not null' => true,
'default' => 0,
'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,
),
),
),
?>
The full CCK export, with the content type and other fields, is attached.
But we've wasted enough time and will simply recreate that field rather than debugging further. But if you're getting a white screen importing a content type, you'll probably find this page, and you have a starting point. Good luck!
Note: "The import data is not valid import text." seems to be the reaction whenever the content type definition is left off even if you choose a content type to apply the fields to.
More like this
- Fix RSS output for CCK node types so that information from all important fields are included
- White Screen of Death due to taxonomy parent-child infinite loop
- Give choice to show body field label, as for CCK field labels, on custom content types
- Deleting the last content type containing a field deletes that field also
- White screen of death on MAMP: increasing memory limit in php.ini

