Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey everyone,
Just wanted to check in to see if a Drupal 7 port was in the works...
Thanks,
Ben
Comments
Comment #1
dman CreditAttribution: dman commentedThe current CVS HEAD is D7
There's a huge amount of goodness in D7 taxonomy (fields and RDF for taxonomy) that it's taking advantage of.
It's actually working for me on D7 on all the test cases, but I haven't got a live D7 project or the ability to support too many branches at once. But it's there.
Comment #2
verres CreditAttribution: verres commentedany more headway on a full D7 port? looking to use this on a live site. thnx!
Comment #3
NancyDruDan, I would say that few people could fault you for freezing 5.x right where it is - that's one branch to not maintain.
Comment #4
akanouras CreditAttribution: akanouras commentedThought I'd let you know I managed to use taxonomy_xml's Git master (as of commit 07453723187a1adc3594e64126423a02fc626dc5) on Drupal 7 to import 2 simple taxonomies exported by the latest taxonomy_xml-4.7.x-1.x-dev (on an very old Drupal 4.7 installation).
In both cases, 2 vocabularies were created, one I expected (with machine_name = '_', probably because the original vocabulary's name only had Greek characters in it, like 'Θέματα'), and another one with the first one's vid+1, with name = ' ', machine_name = ' ', description = NULL, hierarchy = 0, module = 'taxonomy', weight = 0.
After the import, there was a warning about a function getting a value instead of a reference, which didn't seem to affect the import process. I'm attaching a patch for that.
There was another message, 'Notice: Undefined variable: vocabulary στην taxonomy_xml_setup_vocabulary_from_data() (γραμμή 371 του /srv/www/mysite/sites/all/modules/taxonomy_xml/formats/xml_format.inc).', which may be related to the additional empty vocabulary being created. Again, the import process was successful despite this.
Thank you for your work,
Antonio
Comment #5
NancyDruMade title specific, set "needs review"
Comment #6
upupax CreditAttribution: upupax commentedTested the D7 port:
- I got an error trying to upload an xml file saying .xml was not an allowed extension;
- importing a big vocabulary export, the script exceeded 30 seconds and I got WSOD.
Comment #7
podaroksubscribe
Comment #8
podarokComment #9
metaface CreditAttribution: metaface commentedsubscribe
Comment #10
metaface CreditAttribution: metaface commentedComment #11
marcusx CreditAttribution: marcusx commentedsubscribe
Comment #12
djbobbydrake CreditAttribution: djbobbydrake commentedsubscribing
Comment #13
perhenrik CreditAttribution: perhenrik commentedsubscribing
Comment #14
chaosmind CreditAttribution: chaosmind commentedsubscribe
Comment #15
mattbk CreditAttribution: mattbk commentedsubscribe
Comment #16
alpp CreditAttribution: alpp commentedsubscribe
Comment #17
znerol CreditAttribution: znerol commentedThree patches in order to get taxonomy xml export working on Drupal 7.
Comment #18
dman CreditAttribution: dman commentedThanks.
Sorry subscribers, the company I'm contracted to kept me busy this year on the end of some huge D6 projects. This month I am finally able to get into more D7 jobs, and now have time & purpose to pull my neglected D7 module ports forward!
I'll see what I can do about rolling in this contribution and reviewing the status for a D7 release...
Comment #19
tinefin CreditAttribution: tinefin commentedsubscribing
Comment #20
dman CreditAttribution: dman commentedI've got a project I want this for, so some attention will happen to it soon ... ish :-/
Comment #21
groovehunter CreditAttribution: groovehunter commentedxml import works for me with current git master and arc2, exept for the notice
Warning: Parameter 1 to taxonomy_xml_taxonomy_term_load() expected to be a reference, value given in DrupalDefaultEntityController->attachLoad() (Zeile 334 von /var/www/vhosts/drupal-7.8/includes/entity.inc).
Comment #22
dman CreditAttribution: dman commentedSorry everyone - I really should have tagged the master branch as a D7 - dev so we could get at it easier.
I've started that now
http://drupal.org/node/1303160
Also - the roadmap is to look at D7 Feeds and see if I can port an amount of this work over to merge with them - as add-on parsers and processors. That will be a rewrites of sorts, but in the meantime, this method still "supported" for now.
I'll hit those patches above from znerol now!
Comment #23
dman CreditAttribution: dman commentedContributions from #17 @znerol rolled in, thanks - they were really good!
Also added rdf.module as a requirement as It is needed but wasn't listed.
progress!
Comment #24
Simon Naude CreditAttribution: Simon Naude commentedI'm getting the same error as http://drupal.org/node/841232#comment-4367216 (only the second vocabulary doesn't import any terms). My export was from a D5 site.
Comment #25
drzraf CreditAttribution: drzraf commentedMisc potential one-liners (didn't wanted to fills multiple separate bugs for these):
add
$GLOBALS['devel_shutdown'] = FALSE;
at the end oftaxonomy_xml_export_vocabulary
.Not everyone use the devel module but I noticed that even after
</taxonomy>
the "devel" footer breaks the import.Setting-up this global here unconditionally does not hurt.
add a "\n" to
$output .= "</term>";
in xml_format.inc, it cost 1 byte but helps a lot developers (especially for text-editors and diff)add a
taxonomy_vocabulary_machine_name_load
check intaxonomy_xml_setup_vocabulary_from_data
to avoid "SQL duplicate key"(I had hard time attempting figure out how the later function works; can't send a proper patch)
Comment #26
drzraf CreditAttribution: drzraf commentedThe 3 various hardcoded 'und' should also be replaced by LANGUAGE_NONE.
In
taxonomy_xml.process.inc
,taxonomy_xml_create_guid_field()
:translatable and locked are integer according to the API.
entity_type is not "required" in D7 but I would rather remove the comment and keep the the attribute
unless there's a a long-term use/support for it. (but I don't really know the background of the module).
taxonomy_xml_absorb_vocabularies is probably taxonomy_xml_absorb_vocabulary_definitions
Comment #27
podarokComment #28
NicolasH CreditAttribution: NicolasH commentedWould it make sense to release a dev branch? Seems to work for the basics and would get more eyeballs for testing. Just used this for migrating a number of vocabularies from D6 to D7 and this was the only module that was up for the job.
Comment #29
dman CreditAttribution: dman commentedSorry there.
A -dev branch has been on git for a long time now (October 2011 !!!), and has been working OK for me several times, though I think there were a few things that needed better testing. Can't remember what they were now.
I made the branch long ago, but somewhere between the dev branch happening on git and the d.o project release becoming available for me to 'publish' ... I got distracted into further debugging.
http://drupal.org/node/1303160
So, um, help needed.
A large amount of clutter has actually been DROPPED from the d7 branch as we have RDF and field-able terms in core now (I enjoyed getting that in) and something that is almost but not quite GUIDs for vocabs and terms.
I am not very interested in propping up the old XML-only syntax, as the RDF/SKOS syntax has emerged as a preferred leader in this field. Please export and import using that syntax where you can.
However, I know that a certain amount of demand for this module will be to take D6 taxa and get them into D7. That is supposed to work, but testing (with actual source data samples!!) and help will be needed.
Comment #30
dman CreditAttribution: dman commentedtag shows up now, finally.
Comment #31
drzraf CreditAttribution: drzraf commentedbut parts of the comment #26 are valid :)
Comment #32
Ozzie CreditAttribution: Ozzie commentedsubscribing
Comment #33
GStegemann CreditAttribution: GStegemann commentedI found some issues today while clicking on the export tab:
'Page not found' error when attempting to open INSTALL.txt:
The above message may appear several time when switching from the export to import tab. In my case 5 times.
I hope this is of help.