After importing the file.

warning: max() [function.max]: Array must contain at least one element in taxonomy_xml/xml_format.inc on line 211.
Backtrace:
max(a:1:{i:0;a:0:{}})[xml_format.inc:211];
.taxonomy_xml_xml_parse(string)[taxonomy_xml.module:580];
..taxonomy_xml_invoke_import(string)[taxonomy_xml.module:511];
...taxonomy_xml_import_form_submit(string)[form.inc:776];
....form_execute_handlers(string)[form.inc:416];
.....drupal_process_form(string)[form.inc:119];
......drupal_get_form(a:1:{i:0;s:24:"taxonomy_xml_import_form";})[taxonomy_xml.module:295];
.......taxonomy_xml_import(a:0:{})[?:?];
........call_user_func_array(a:2:{i:0;s:19:"taxonomy_xml_import";i:1;a:0:{}})[menu.inc:348];
.........menu_execute_active_handler(a:0:{})[index.php:18];
..........index.php
CommentFileSizeAuthor
#2 test11.xml_.gz983 byteskenorb

Comments

dman’s picture

the old 'xml' format hasn't got a lot of love in the last year.
Can you add the vocab file that triggers this error?

kenorb’s picture

StatusFileSize
new983 bytes

My mistake, I tried to upload RDF format as XML.

dman’s picture

OK. Good example.
Yeah, importing RDF as RDF seems to do pretty much what is expected.
There are a few new things there, but those have no good way to be stored, so don't hurt anything.
zthes eh? I'd like to see that in action.

It was odd to see a rdf:resource that's not a URI, But I see by the use of xml:base="http://www.nsonline.co.uk/ that the 'resources seem to resolve to xml:base="http://www.nsonline.co.uk/7f523b53839e0808ff6ea6de2a165f88 etc ... so I guess it's all legal.

An idea would be to retain the other values - especially the <skos:scopeNote label="globallyUniqueId"> in the term as well. But there's no solid D6 way of doing that. taxonomy_enhancer should have allowed it (and is what I use) but if what you've got is sufficient I think you have a win. If your input isn't too big.

Still, I'll see if there is a way to improve detection on the formats, or better error handling in wrong cases.

kenorb’s picture

I just replaced rdf:resource to localhost manually:)
Thanks.

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is no longer officially supported. If you think this issue is still relevant for 8.x, feel free to re-open.