Since a while I try to install Trackfield to show GPS tracks as an overlay of Google Maps on my website. But I can’t manage to install all necessary parts of Trackfield.
I can activate Track and Track file. No problem.
If I activate Track CSV I get an error because of a backslash in trackfield_csv.module line 191.
This is line 191:
($out['seconds'][$lp] - $out['seconds'][$lp - 1]) *\
If I remove this backslash no error occurs (because of my poor PHP knowledge I don’t know if that is the proper way).
If I active Track GPX or Track KML I get the following line:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in path-to-my-site/sites/all/modules/trackfield/trackfield_kml.module on line 22
or
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in path-to-my-site/sites/all/modules/trackfield/trackfield_gpx.module on line 22
This is line 22 from trackfield_kml.module:
$co = $ls->item(0)->getElementsByTagName('coordinates');
This is line 22 from trackfield_gpx.module
$point_list = $course->item(0)->getElementsByTagName($pointname);
Again, I do not know much about PHP, so I don’t see the problem. Can someone here help me, please?
Kind regards – andreas
Comments
Fixed by changing PHP4 to PHP5
Ok, I found the reason for this problem: PHP4. After setting the server to PHP5, I had no errors anymore but was able to create very nice maps with my gpx tracks on it.
Thank you for this great module!
(I could figure out where the backslash comes from and what it is good for…)