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

raintonr’s picture

There 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.

zekerme’s picture

Thanks 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.

raintonr’s picture

Can you please post the exact steps you've taken so we can try and figure out what's gone wrong?

atreus’s picture

I have the same problem. Brand new site, enabled CCK, enabled Track, enabled Track CSV, enabled Track Graph.

I get the following error:

 * user warning: Table 'drupal_database.node_field' doesn't exist query: SELECT DISTINCT nfi.field_name FROM node_field nf, node_field_instance nfi WHERE nf.type = 'track' AND nfi.field_name = nf.field_name ORDER BY nfi.field_name in /var/www/drupal/sites/all/modules/trackfield/trackfield.module on line 441.

* You must specify the reference field of type track.

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.

raintonr’s picture

Re: #4. That's odd - why have you not got a node_field table? Doesn't CCK create that?

provod’s picture

Some 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/

raintonr’s picture

Ah, 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?

provod’s picture

yes, 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

jupiterchild’s picture

Yes 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.

atreus’s picture

Just 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.

jupiterchild’s picture

@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.

raintonr’s picture

Hi 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.

zekerme’s picture

I'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?

raintonr’s picture

Have 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.

zekerme’s picture

The dev release appears to work.
Thanks.

asespat’s picture

I 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?

barm’s picture

I 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?

barm’s picture

I 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.

raintonr’s picture

Hi,

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.

raintonr’s picture

Re: #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.

raintonr’s picture

Status: Active » Closed (fixed)

I'm closing this as no response on #20 and others report working.

traveller333’s picture

Version: 6.x-0.5 » 6.x-1.0
Component: User interface » Documentation
Assigned: Unassigned » traveller333

Re; 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!