Importing testdata works for all but nodes

jurgenhaas - August 18, 2007 - 13:49
Project:Import / Export API
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:tom friedhof
Status:reviewed & tested by the community
Description

I'm trying to import the files from the testdata directory and I get the vocabulary and the terms imported but not the stories. I tried the XML file with and without keys, neither works. And I haven't found any log. What could the problem for that be?

I used it in Drupal 5.2 and I'm logged in as administrator. I created a new site for it which only contains a couple of pages and nothing else. The Taxonomy module is active too, so I have no idea anymore what the problem could be.

Please help.

#1

tom friedhof - November 29, 2007 - 20:42
Assigned to:Anonymous» tom friedhof
Status:active» reviewed & tested by the community

The node_data.xml file has the wrong tag for stories base on what is specified in the definition file for #xml-plural. I've changed the tag in node_data.xml file from <stories> to <story-collection>. The data should import no problem after applying this patch.

AttachmentSize
testdata.patch 804 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.