During importing some content type, I've got following error:
Location: admin/content/types/import
Error: Illegal choice story in Node type of feed items element
'processors' =>
array (
'feedapi_taxonomy_compare' =>
array (
'enabled' => false,
'weight' => 0,
),
'feedapi_node' =>
array (
'enabled' => 0,
'weight' => '0',
'content_type' => 'story',
'node_date' => 'feed',
'promote' => '3',
'x_dedupe' => '0',
),
'feedapi_inherit' =>
array (
'enabled' => 0,
'weight' => '0',
'inherit_taxonomy' => 1,
),
),
What this message mean? What's missing and how can I repair that?
Comments
Comment #1
kenorb commentedI think I've renamed content type story to something different, that's why.
But I think feedapi_node shouldn't save any content_type (the first one from dropdown) into database if processor is not enabled (especially when content type can later be renamed).
Maybe the first element of dropdown should be without default content type, but '|Please select...' ? (with t() of course)
UPDATE: When value is empty, there is error as well: 'Illegal choice in Node type of feed items element'
Because at the moment each content type during exporting is broken and can't be imported.
Comment #2
alex_b commentedWhat node types are you importing?
Which module is actually triggering the message "Illegal choice in Node type of feed items element" ?
I'd suggest that feedapi_node should check whether content type exists before it uses it. If it does not exist it should refuse to generate nodes and issue a meaningful error message.
We do have a deeper problem here though: settings are stored per feed node no matter whether the feed node settings differ from the content type settings or not. Thus if you have a bunch of feed nodes created you need to not just fix the content type settings but also each feed node's settings.
Comment #3
kenorb commented1. Creating brand new content type Test (default settings only, without any changes) via CCK.
2. Exported via content_copy module:
There is always content_type as Poll, if it's your first content type:
Why this variable is saved (into database), if I haven't selected it.
After that if this content type is not used and deleted after, you can't import following content type even there is no any relation to Poll content.
I don't know how this problem can be solved.
Comment #4
aron novakComment #5
kenorb commentedDrupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.