Closed (fixed)
Project:
Trackfield
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
4 Nov 2008 at 17:12 UTC
Updated:
12 Nov 2011 at 22:40 UTC
I keep getting the message "You must specify the reference field of type track" even after having created a field of that type and specified the field name exactly when trying to create secondary fields such as a map. I was wondering if someone could point me in the right direction. I'm not sure what other information would be helpful.
Thanks.
Comments
Comment #1
raintonr commentedThere is some documentation on the process here:
http://drupal.org/node/274516
Have updated the error message to give hints with this change:
http://drupal.org/cvs?commit=151151
Hope this solves your problems. Please take the latest version from CVS to check.
Comment #2
zekerme commentedThanks for adding the code, but it can't find any valid fields of type "track" despite me having created one as per the instructions. Why it can't find it, I don't know.
Comment #3
raintonr commentedCan you please post the exact steps you've taken so we can try and figure out what's gone wrong?
Comment #4
atreus commentedI have the same problem. Brand new site, enabled CCK, enabled Track, enabled Track CSV, enabled Track Graph.
I get the following error:
I followed the instructions here: http://drupal.org/node/256138
I used "field_track_data", which is the field used...but for some reason it doesn't recognize it.
Comment #5
raintonr commentedRe: #4. That's odd - why have you not got a node_field table? Doesn't CCK create that?
Comment #6
provod commentedSome of the files that packaged in your latest 6.x-0.5 are actually from your old cvs. node_field table has been renamed to "content_node_field".
latest files that work on D6 are here http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/trackfield/
Comment #7
raintonr commentedAh, yes... there was a mess with the releases and I've asked the Drupal site mods. to remove that. No luck with that yet.
So if you use the HEAD code, are things OK?
Comment #8
provod commentedyes, seems to work OK. That mess should really be sorted - wasted couple of days to work it out, as the module has good functionality.
cheers
Comment #9
jupiterchild commentedYes this does work.
I had not been able to set the reference field since updating from Drupal 5.x. so I assumed this was an update problem.
Eventually after uninstalling Trackfield and completely clearing the database of any reference to Trackfield, I re-installed Trackfield but still could not set the reference field. Just got a white screen with no errors messages.
A couple of hours after doing this provod posted observations re: the correct files and I finally have Trackfield working again.
Thanks provod, saved me a lot more time.
Comment #10
atreus commentedJust to double check:
Are we all in agreement that the code posted in #6 works and the code listed under drupal.org/project/trackfield does not work?
If so, the cvs code should really be "released" on the project page.
Comment #11
jupiterchild commented@atreus
Currently I am only using these Trackfield modules:
trackfield.module
trackfield_map.module
trackfield_csv.module
trackfield_file.module
In order to get Trackfield to function I replaced the original 6.x-0.5 project files with these:
trackfield.module
trackfield_map.module
trackfield_csv.info
trackfield_csv.module
trackfield_file.info
trackfield_file.module
from the link given by provod in comment #6: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/trackfield/
I have not checked the differences in code so I cannot confirm which files do not function correctly, just that the ones listed above work for me.
Comment #12
raintonr commentedHi guys,
I'm really sorry about this confusion. It's rather embarrassing to say the least that I can't seem to figure out the way the release system is meant to work. Not being able to correct mistakes you make in CVS is rather annoying too.
Comment #13
zekerme commentedI'm glad the issue was found, but I'm not familiar enough with the cvs system to download the updated files I need to get it to work. Could someone point me in the right direction?
Comment #14
raintonr commentedHave been able to get a dev. release for D6 going. The download is:
http://ftp.drupal.org/files/projects/trackfield-6.x-1.x-dev.tar.gz
If someone could confirms this fixes the issue please do so we can close it.
Comment #15
zekerme commentedThe dev release appears to work.
Thanks.
Comment #16
asespat commentedI try to install trackfiel module. I use the last link in this post
, then i enabled the module, created a field track_data, and created a field track_map, but i can't reference track_map to track_data. the ressult is this message
You must specify the reference field of type track. Valid fields in this system:
any idea?
Comment #17
barm commentedI have the same problem:"You must specify the reference field of type track. Valid fields in this system:"
I created field_trackdata with parameters:
Type of data to store:text
Form elemen to edit the data: Text field
Size of textfield: 600
Global settings
Required:No
Number of values: 1
Plain text
Maximum length: 600
Are this parameters right?
Trackfield 6.x-1.x-dev - 16/04 (but in info file: version = "6.x-0.5-dev" )
Drupal 6.10
CCK - 6.x-2.1
Where is error?
Comment #18
barm commentedI find the error!!!
All is simle. I missed Type of data "Track", becase I am using translated version of interface, and type "Track" was automaticaly translated to my language in sense of Tracker module.
Comment #19
raintonr commentedHi,
glad you say you found the issue, but the "Type of data to store" should be 'Track' (you said you chose 'Text' - I don't even have that option!) for the initial track field.
If you were trying to add a graph or stats or map then pick 'Track Graph', 'Track Map' or 'Track Stat' as appropriate.
Comment #20
raintonr commentedRe: #16 - is your problem fixed now? The field 'track_data' you created should be type 'Track' or you will not be able to reference it in maps, stats, etc.
Comment #21
raintonr commentedI'm closing this as no response on #20 and others report working.
Comment #22
traveller333 commentedRe; Unknown field type "Track"
Posted by Lemontonix on December 23, 2010 at 9:15am
and
unable to specify reference field:
I had the same problem with regards to step 5 of "Using Trackfield":
You must specify the reference field of type track. Valid fields in this system:
Solved this issue as #18:
missed Type of data "Track", becase I was using translated version of interface, and type "Track" was automaticaly translated to my language..but it should be "track" or translated corresponding word and not "text"
and it worked!