My imports aren't working as expected. I was able to import the content, it says Content was created and the data is populating some of the relative tables, but the new content is not being listed in the UI. I'm not sure what's preventing the content from being listed. This should have been simple, but it's taken hours and I've tried everything I can think of to try and resolve this myself. Please help!
Scenerio:
I created a custom content type since my feed doesn't have any of the usual attributes per a normal rss feed. I used "xpathparser" to create a variables for GUID and Title, since I believe I read at least one of them is required per content node. Is this true?
I imported content, but their nodes aren't listed under Content. I looked at the database and table "feeds_node_item" has the nodes imported with the correct gid value, but "feed_nid" is zero and url empty for all rows (not sure what the values should be). I looked at the relative "content_field_fieldnamehere" tables and relative mapped data is being stored correctly. Records for "node" table are created. So why aren't the nodes listed under Content?
Current Modules Enabled:
Feeds Admin UI 6.x-1.0-beta10
Feeds Import 6.x-1.0-beta10
Feeds XPath Parser 6.x-1.10
Content 6.x-2.9
Chaos tools 6.x-1.8
(No Data Modules Enabled)
I Created New Import using the following:
standalone form, never refresh, import on submission
Fetch via File Upload
Parse via Xpath XML parser,s settings are correct b/c storing correct data from xml
Processor is Node Processor, never expires, Update existing nodes
Mapped:
xpathparser:0 GUID
xpathparser:1 Product URL
xpathparser:2 Product ID
xpathparser:3 Product Name
xpathparser:4 Product Image
xpathparser:5 Title
I've exported the Importer so you can see the configuration:
$feeds_importer = new stdClass;
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'ls_importer';
$feeds_importer->config = array(
'name' => 'My Importer',
'description' => '',
'fetcher' => array(
'plugin_key' => 'FeedsFileFetcher',
'config' => array(
'direct' => FALSE,
),
),
'parser' => array(
'plugin_key' => 'FeedsXPathParserXML',
'config' => array(
'sources' => array(
'xpathparser:0' => '@product_id',
'xpathparser:1' => 'URL/product',
'xpathparser:2' => '@product_id',
'xpathparser:3' => '@product_name',
'xpathparser:4' => 'URL/productImage',
'xpathparser:5' => '@product_name',
),
'rawXML' => array(
'xpathparser:0' => 0,
'xpathparser:1' => 0,
'xpathparser:2' => 0,
'xpathparser:3' => 0,
'xpathparser:4' => 0,
'xpathparser:5' => 0,
),
'context' => '/merchandiser/product',
'exp' => array(
'errors' => 0,
'debug' => array(
'xpathparser:0' => 'xpathparser:0',
'xpathparser:1' => 'xpathparser:1',
'xpathparser:2' => 'xpathparser:2',
'xpathparser:3' => 'xpathparser:3',
'xpathparser:4' => 'xpathparser:4',
'context' => 0,
'xpathparser:5' => 0,
),
),
),
),
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
'config' => array(
'content_type' => 'ls_feeder',
'input_format' => '0',
'update_existing' => '2',
'expire' => '-1',
'mappings' => array(
0 => array(
'source' => 'xpathparser:0',
'target' => 'guid',
'unique' => 1,
),
1 => array(
'source' => 'xpathparser:1',
'target' => 'field_product_url',
'unique' => FALSE,
),
2 => array(
'source' => 'xpathparser:2',
'target' => 'field_product_id',
'unique' => FALSE,
),
3 => array(
'source' => 'xpathparser:3',
'target' => 'field_product_name',
'unique' => FALSE,
),
4 => array(
'source' => 'xpathparser:4',
'target' => 'field_product_image',
'unique' => FALSE,
),
5 => array(
'source' => 'xpathparser:5',
'target' => 'title',
'unique' => FALSE,
),
),
'author' => 0,
),
),
'content_type' => '',
'update' => 0,
'import_period' => '-1',
'expire_period' => 3600,
'import_on_create' => 1,
);
As an alternative I created new content from the content type and attach to the feed importer. It created nodes with "feed_nid" populated in "feeds_node_item", but gives me the following messages for each of the imported rows:
warning: array_merge(): Argument #2 is not an array in /drupalpath/modules/feeds/includes/FeedsConfigurable.inc on line 127.
warning: Invalid argument supplied for foreach() in /drupalpath/modules/cck/content.module on line 1284.
File is not accessible.
Also, it lists the Content nodes, but when I look at the content there are no values.
Thanks for reading! :)
Comments
Comment #1
myregistration commentedI reinstalled and perhaps my database was jacked. Could be a conflict between modules, haven't enabled many yet, but for now it's working.