Hello raintonr!
First of all thank you for your work, and for making it opensorce. its very pleasent to go to search look for something, download it and install it no questions asked.

I'm having a few problems with your module, I've looked on this site and i tryied pretty much everything, i think.

I can load files. When i browse for a kml or gpx file and select "File:KML" or "File:GPX" I get this error message:

warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\modules\trackfield\trackfield_file.module on line 30.
warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in C:\xampp\htdocs\modules\trackfield\trackfield_file.module on line 41.
warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in C:\xampp\htdocs\modules\trackfield\trackfield_kml.module on line 19.
Field track: Invalid KML or no paths found in KML.

everytime i choose a file and select just "KML" or "GPX" from the drop donw menu i get this error:

warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, '<' not found in Entity, line: 1 in C:\xampp\htdocs\modules\trackfield\trackfield_kml.module on line 19.
Field track: Invalid KML or no paths found in KML.

I've spend 2 days trying to work this out with no luck. I'm new to drupal and all this modules :) But i think i have all the modules i need enabled (all exept the queue one)

I have drupal 6.17 and the latest dev version of trackfield.
I send you some test files i already tested on other sites and google earth windows application.
They both load and none of them has an empty line in the beggining of the file.

Thank you for your time.

CommentFileSizeAuthor
test.zip21.37 KBVentura
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

raintonr’s picture

Status: Active » Closed (fixed)

Please see the trackfield_file notes here:

http://drupal.org/node/274516

It seems you are missing step 2: "Place the filename with your data in inside the value part of the trackfield. Thus multiple files can be attached to a node but only one used for this purpose."