| Project: | FeedAPI |
| Version: | 6.x-1.9-beta2 |
| Component: | Code (general) |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello maintainer and folks
Today I was trying to export a CCK and import in other Drupal Installation, but I was getting a freaking error "An illegal choice has been detected. Please contact the site administrator".
Guess what, I'm the administrator :P
After debugging the import process I realize the fail is because by default all content types in a Drupal Installation with module FeedAPI enabled, have the option "Input format for feed items" without selection, but doesn't matter what option I set I always get from the CCK export process a code like this:
'feedapi' =>
array (
'enabled' => false,
'upload_method' => 'url',
'refresh_on_create' => 0,
'update_existing' => 1,
'refresh_time' => 1800,
'items_delete' => 0,
'parsers' =>
array (
'parser_common_syndication' =>
array (
'enabled' => false,
'weight' => 0,
),
),
'processors' =>
array (
'feedapi_node' =>
array (
'enabled' => false,
'weight' => 0,
'content_type' => 'blog',
'input_format' => 0,
'node_date' => 'feed',
'x_dedupe' => 0,
),
),
),This definition generate and error in form validation because the function _form_validate in includes/form.inc don't allow false values in checkboxes elements in a form.
So my solution was remove this code from export output.
Please improve the integration with CCK import , because this error can drive you nuts.
Regards,
enzo
| Attachment | Size |
|---|---|
| feedapi_cck_settings.png | 95.25 KB |