Closed (fixed)
Project:
Trackfield
Version:
5.x-0.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2008 at 11:53 UTC
Updated:
11 Jul 2008 at 02:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
raintonr commentedI assume the dump included is from line 290-ish in trackfield_graph.inc? Can you also dump the
$graphargsarray at the very start of this function?It doesn't look like your data has not been saved properly. You say you told the input it was 'Lon, Lat, Alt, User' but your screen dump shows KML. Don't think this is an issue but is curious.
Do you have any values in the trackfield_datasets table for this nid?
Comment #2
jonathan_hunt commentedI originally put the data in as KML but got nowhere so re-entered it as Lon,Lat,Alt, User. Here's some debugging from around _trackfield_graph_get_graphdata()
Thanks for the quick response. (going offline for a while now...)
Comment #3
jonathan_hunt commentedJust noticed table 'trackfield_datasets' is empty. That might explain a fair bit...
Comment #4
raintonr commentedRe: #3... yes, that'll do it! ;)
So you must have some issue when saving the data. That issue is none is saved and therefore nothing to graph and hence your error.
Can you please paste in the text here (it's graphically shown above) and will try and enter into the demo system. Or you can register on that and do the same and we'll try and figure out why it's not saved.
Comment #5
jonathan_hunt commentedhttp://trackfield.r2b2.net/node/33 entered as Lon Lat works a treat.
http://trackfield.r2b2.net/node/34 pasted from KML fails with DOM errors.
http://trackfield.r2b2.net/node/35 entered as KML, causes DOM errors, then strip tags and specify Lon Lat Alt Usr and works ok.
I tried deleting and re-applying my base track data field but not change (data not stored in db). Will try and look into this on a fresh D5 install and see what happens...
Comment #6
raintonr commentedRe: http://trackfield.r2b2.net/node/34
The problem here is that this is a KML snippet only. The field needs a full KML. I mean, something like:
For example, this is what Google Earth will place in your paste buffer if you 'copy' a path in that application.
I Agree the error handling needs more work, sorry.
Comment #7
jonathan_hunt commentedAh, ok, thanks. I was working with a KML file with hundreds of Placemarks, so thought the KML snippet would be enough.
Now, I created a new CCK node type and pasted a full KML file into it and it's working, kind-of. See the Placemarks, no track image below. No js errors but no track either.
Also, the jpgraph field is still giving me a jpgraph set scale error: specified Max value must be larger than the specified Min value.
Comment #8
jonathan_hunt commentedI get a "warning: Wrong parameter count for min() in /home/www/web15/web/drupal5/sites/rivers/modules/trackkfield/trackfield_graph.inc on line 137."
From line 92 in trackfield_graph.inc,
Comment #9
raintonr commentedRe: #7
Very interesting. So you can see the track when your data is entered in the demo system here:
http://trackfield.r2b2.net/node/35
But when this same data is entered on your own system things aren't working so well.
The demo system has Gmap module v5.x-1.0-alpha1. That said, I note on the gmap.module page this is dated 17 Jun 2008 and the demo system was certainly put together before then so there may have been some changes since that breaks this.
What version of gmap.module do you have loaded in your system?
Re: #8
Don't worry about that. It's because there's no altitude data in your set so no graph can be shown. I actually noticed and fixed that in release 0.3.
Release 0.3 also re-instates the KML error handling so you'll get a proper(-ish) error.
Comment #10
jonathan_hunt commentedSorry, I should have checked the gmap version. I was on a dev version from 2007. Just updated to 5.x-1.0-beta1, but no change to rendering: start and end points in correct order but no track. No js errors reported. I don't have time to dig into it much more just now but will try and get to the bottom of this eventually. Thanks for your help.
Comment #11
raintonr commentedI'm closing this issue as the set scale error should be gone. For the gmap issue we have moved on to discuss see #275496: New GMap Brakes TrackField
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.