Feature #95021
closedHandle "XML could not be parsed: Line ...: No memory" during import in EXT:impexp
0%
Description
TYPO3 may hit memory limits when converting XML to PHP arrays, even before all PHP memory is consumed. This is probably due to a specific limit of 10 MB in libxml, which was introduced with libxml v2.7.0. This limit could be impractical when importing large XML files via EXT:impexp.
One solution could be to turn off the libxml limit, but this is only supported for the DOMDocument and simplexml_* implementations of libxml, but not for the current XmlParser implementation (a.k.a. xml_parser_*() functions):
https://stackoverflow.com/questions/5428055/xml-parse-huge-on-function-simplexml-load-string
Another approach could be to read and parse the XML file in blocks, as suggested in this stackoverflow thread:
https://stackoverflow.com/questions/19152613/xml-parse-no-memory-error-php
Updated by Alexander Nitsche about 3 years ago
- Is duplicate of Bug #83580: GeneralUtility::xml2array() can't parse bigger files (> 10MB) added
Updated by Alexander Nitsche about 3 years ago
This issue can be closed, as it is a duplicate of #83580.
Updated by Riccardo De Contardi over 2 years ago
- Status changed from New to Closed
- Target version deleted (
next-patchlevel)
Thank you for your reply and sorry for this very late feedback.
Closed in agreement with the reporter as duplicate of #83580