2015-02-06 31 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);