2015-02-06 78 views
0

我已经安装了Drupal 7 feeds模块并创建了一个导入器。Drupal 7 Feeds Module not working

我可以显示独立表单,添加一个文件,但上传/分析页面只显示消息“正在导入...”。它不会执行其他操作,也不会导入选定的内容类型。没有错误显示。

任何想法?

//进口商在////////////////////////////////////////// ///////////////

$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, 
); 

回答

0

看起来不存在与batch.js

JQuery的功能造成错误

修复是添加一个错误;到代码的开始。

;(function ($) { 

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

})(jQuery);