Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Importing Content type via admin UI, produces these errors:
warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'bu_page_node_form' not found or invalid function name in E:\xampp\htdocs\drupal\includes\form.inc on line 378.
An illegal choice has been detected. Please contact the site administrator.
How to produce it:
Install modules: translation_management, languageicons, l10n_client, i18n
Here's the CCK definition
$content['type'] = array (
'name' => 'BU Page',
'type' => 'bu_page',
'description' => 'A <em>BU Page</em>, similar in form to a <em>story</em>, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a <em>page</em> entry does not allow visitor comments and is not featured on the site\'s initial home page.',
'title_label' => 'Title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' => array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'language_content_type' => 0,
'old_type' => 'bu_page',
'orig_type' => 'bu_page',
'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,
'i18n_newnode_current' => 0,
'i18n_required_node' => 0,
'i18n_lock_node' => 0,
'i18n_node' => 1,
'i18nsync_nodeapi' => array (
'name' => false,
'status' => false,
'promote' => false,
'moderate' => false,
'sticky' => false,
'revision' => false,
'parent' => false,
'taxonomy' => false,
'comment' => false,
),
'icl_content_node_type_fields' => array (
'title' => true,
'body' => true,
'log' => false,
'name' => false,
'date' => false,
'link_title' => false,
)
);
Comments
Comment #1
bonn CreditAttribution: bonn commentedThis is CCK definition generated by Base installation of drupal 6.20 (just content and content_copy enabled), and produces the same error when modules above are installed
Comment #2
bonn CreditAttribution: bonn commentedthis code
produces
An illegal choice has been detected. Please contact the site administrator.
and here's the detail from watchdog
Comment #3
fei CreditAttribution: fei commentedExperienced the same errors using CCK 6.x-2.9
Removed code as suggested in #2 and the import succeeded. I still received the error message however.
I'm new to issue tracker etiquette: Should this be moved to the ICanLocalize queue?