Drupal 7 Feeds模块无法正常工作

时间:2015-02-06 11:58:22

标签: drupal-7

我已经安装了Drupal 7 feed模块并创建了一个Importer。

我可以显示独立表单,添加文件,但上传/解析页面只显示消息“导入...”它没有做太多其他操作,也没有导入到选定的内容类型。没有显示错误。

有什么想法吗?

//下面的进口商/////////////////////////////////////////// //////////////

$feeds_importer = new stdClass();
$feeds_importer->disabled = FALSE; 

$feeds_importer->api_version = 1;
$feeds_importer->id = 'shop_ids';
$feeds_importer->config = array(
    'name' => 'Shop IDs',
    'description' => 'Import a CSV file which feeds into Shop ID node type',
    'fetcher' => array(
    'plugin_key' => 'FeedsFileFetcher',
    'config' => array(
    'allowed_extensions' => 'txt csv tsv xml opml',
    'direct' => 0,
    'directory' => 'public://feeds',
    'allowed_schemes' => array(
    'public' => 'public',
    'private' => 'private',
      ),
    ),
  ),
  'parser' => array(
  'plugin_key' => 'FeedsCSVParser',
  'config' => array(
  'delimiter' => ',',
  'no_headers' => 1,
  ),
 ),
  'processor' => array(
  'plugin_key' => 'FeedsNodeProcessor',
  'config' => array(
  'expire' => '-1',
  'author' => 0,
  'authorize' => 1,
  'mappings' => array(
    0 => array(
      'source' => '\'0\'',
      'target' => 'title',
      'unique' => 1,
    ),
    1 => array(
      'source' => '\'1\'',
      'target' => 'body',
      'unique' => FALSE,
    ),
  ),
  'update_existing' => '1',
  'input_format' => 'plain_text',
  'skip_hash_check' => 0,
  'bundle' => 'shop_ids',
  ),
  ),
  'content_type' => '',
  'update' => 0,
  'import_period' => '-1',
  'expire_period' => 3600,
  'import_on_create' => 1,
  'process_in_background' => 0,
  );

1 个答案:

答案 0 :(得分:0)

看起来batch.js有错误

导致函数错误的JQuery

修复是添加;到代码的开头。

;(function ($) {

并添加(jQuery);到文件的末尾......

})(jQuery);