Location en/admin/content/types/import
Referrer en/admin/content/types/import
Message Illegal choice in Weight element.

  'feedapi' => 
  array (
    'enabled' => 0,
    'feedapi' => 
    array (
      'itemfilter' => 
      array (
        'feedapi_keyword_filter' => 
        array (
          'keywords' => '',
          'enabled' => '',
          'weight' => '',
        ),
      ),
    ),
          'enabled' => '',
          'weight' => '',

enabled and weight shouldn't be set as empty string.

Because then it's imposible to import and export it via content_copy module (cck).

Comments

drewish’s picture

Priority: Normal » Critical

Yeah running into this as well.

drewish’s picture

Version: 6.x-1.6 » 6.x-1.8
Status: Active » Needs review
StatusFileSize
new26.71 KB

Actually, in the current version enabled and weight are set correctly, the problem seems to be the feedapi_node's input_format. It's using the FILTER_FORMAT_DEFAULT constant that's 0 which isn't a value in the select list. Running the constant through filter_resolve_format() seems to handle getting the default.

drewish’s picture

Title: Illegal choice in Weight element » Illegal choice in Weight element, prevents importing or exporting content types
drewish’s picture

Title: Illegal choice in Weight element, prevents importing or exporting content types » "Illegal choice detected", prevents importing or exporting content types
StatusFileSize
new789 bytes

Last patch had a bunch of unrelated crap in it.

justin2pin’s picture

Component: Code feedapi (core module) » Code feedapi_node
Status: Needs review » Reviewed & tested by the community

#4 works great for me.

alex_b’s picture

RTBC here, too.

dwightaspinwall’s picture

StatusFileSize
new695 bytes

Thanks! This patch is the same as #4 but can be executed from the feedapi_node module directory.

kenorb’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)

Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.