Can't import from a large XML

armage - July 15, 2008 - 13:12
Project:Import / Export API
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I'm trying to import about 250 book pages from an XML file. The XML file is valid (dixit xmllint). The import does not work. Without any error message.

If I cut the file to have only a few pages (around 10), every thing's fine.

I have memory limit to 128Mo in php.ini, so I don't think it comes from lack of memory.

It's difficult to test each page searching why the all-pages XML file can not be imported... so do you have some feedback about what can be imported or not from XML ? What fields are mandatory and what fields are not ?

Many thanks,

--
Armage

#1

hefox - February 3, 2009 - 22:18

The issue appears to be in an xml library they are using

the function doesn't parse the function correctly. The exact function is fromSubStr() and the issue is where it calls preg_match_all.

A workaround that may work is to use the native PHP xml doc to convert the string to XML then a custom function to format it to the expected array format. (this is importexportapi_xml_get.inc, function importexportapi_xml_get)

 
 

Drupal is a registered trademark of Dries Buytaert.