Forum Replies Created

Viewing 15 replies - 391 through 405 (of 415 total)
  • Plugin Author tinuzz

    (@tinuzz)

    Hi Tefal,

    Can you contact me privately on m@rtijn.net? I’d like to work out a way to find out what’s wrong.

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Any records in the wp_ts_locations table?

    Plugin Author tinuzz

    (@tinuzz)

    Hi Tefal,

    If you check the database, do the tracks have locations associated with them?

    As I said before, empty tracks do not show up in the list, but they are counted in the pagination counters nonetheless. I will change this in the next release.

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Tefal,

    Great, at least there’s a chance it’s going to work now. Let me know how it goes!

    It’s the activation of the plugin that should trigger the creation and/or update of the database tables.

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi o0timbo0o,

    I’ve got some other ideas, but I need some time to work them out, and as I’m in the middle of $dayjob, I can’t do that right now.

    I’ll contact you by mail to see what we can work out!

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Tefal,

    Can you tell me:
    – your WordPress version
    – the operating system you run it on
    – the version of PHP

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hm, that looks like a real problem then. Problem is that Im not sure how to find the bug without access to the server. The process is quite complex and there are many places where it could go wrong, but there isn’t an obvious one.

    What /should/ happen, is that OruxMaps sends a request which is a simple POST request that has at least the parameter ‘request’ set to ‘update_activity’ and a parameter ‘points’ containing some space-separated coordinate pairs. Trackserver should reply with an XML message that looks like this:

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <message>
    <type>activity_updated</type>
    </message>

    Is there any way you can test if that behaviour is actually happening, for example by running wireshark on the webserver?

    If not, can you run a command line HTTP client like ‘wget’ or ‘curl’ somewhere? I could give you an example of an invocation of such client, to mimic OruxMaps’ behaviour and see what the results are.

    Plugin Author tinuzz

    (@tinuzz)

    Hi Tefal,

    Can you deactivate and re-activate Trackserver and see if the database tables are created then?

    Just to be sure, the table names are ‘wp_ts_tracks’ and ‘wp_ts_locations’, but only if your table prefix is ‘wp_’ (see $table_prefix in your WordPress config, wp-config.php in the main WP directory).

    So the table names are ${table_prefix}_ts_tracks and ${table_prefix}_ts_locations.

    Plugin Author tinuzz

    (@tinuzz)

    Ah, it took me some time to write my answer and I missed some posts.
    WordPress 4.2.2 on PHP 5.4.40 is a supported combination and it should work.

    Don’t any locations appear in wp_ts_locations even after tracking for some time? It seems to me that OruxMaps with MapMyTracks doesn’t send a whole lot of location updates. Please give it plenty of time to collect some points.

    I get far better results in OruxMaps with offline tracking and then using the ‘Share as GPX’ function and uploading the track to Trackserver with AutoShare. But that’s not ‘live online tracking’ of course 🙁 For live tracking, I prefer TrackMe for now. I hope to work with the developer of OruxMaps to improve the experience.

    Plugin Author tinuzz

    (@tinuzz)

    Hi o0timbo0o,

    First, you had me scared with Php Version: 4.0.10.7, but I think that’s the version of phpMyAdmin you’re running, am I right? I was talking about the actual version of PHP.

    Trackserver absolutely needs PHP 5.3 or newer to function and there is no way it can ever support 5.2 or lower.

    I can also explain why only one track is shown in Trackserver and in the result of the query you posted, even though there are two tracks in your database. The second track (the one by OruxMaps) likely does not have any locations (trackpoints) associated with it. Is that correct?

    Trackserver will only show tracks with at least one Trackpoint. I realise that this may be less than obvious and it may not be practical either, so I think I will change that behaviour.

    OruxMaps sends a request when online tracking is started, at which point the track is created in Trackserver. It then collects track points for some time (I’m don’t exactly remember how much time, it could be 30 seconds or 2 minutes) and then sends a bunch of them in a single request. So when testing with Orux, you should at least wait a few minutes before ending the track and checking with Trackserver, to give it a chance to send some locations.

    Given all of this, do you have any other issues with Trackserver?

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi o0timbo0o,

    That query looks right to me. Could you run that query in MySQL directly, via the CLI or phpMyAdmin for example? I’m curious whether the result contains any tracks.

    Can you tell me:
    – your WordPress version
    – the operating system you run it on
    – the version of PHP

    I’m suspecting some sort of an incompatibility here.

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    That’s a good suggestion, thank you. I should probably make HTTPS the default, or maybe just use whatever the WordPress install is using.

    I leave this thread open for now until I can test these scenarios.

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Tefal, you wrote:

    “When you download a file in Manage trasks continually shows: could not be validated as GPX 1.1”

    I’m not sure I understand. Do you mean upload rather than download?

    The error message about GPX 1.1 means, that the file you upload is not a proper GPX 1.1 file. Maybe it is a GPX 1.0, which is not supported by Trackserver, or it is not a GPX at all.

    Trackserver uses the official GPX 1.1 schema from http://www.topografix.com/gpx.asp to validate the GPX file before it is accepted for upload. I haven’t implemented older versions of the schema because I did’t think it would be necessary, but I really don’t know how common or uncommon GPX 1.0 files are, so if there’s a demand, I can implement it.

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Hi,

    Sorry to both of you for the late reply, I have been away for a few days.

    You have clearly hit a bug in Trackserver, and of course I want to fix it. I’m just not sure how to go about it, since I cannot reproduce the bug.

    I am interested in the exact query that Trackserver is doing on the database for showing the list of tracks. Are you up to editing a file to test this for me?

    In tracks-list-table.php, can you insert the following at line 128:

    var_dump($sql);

    Then open the tracks management page and post the SQL query that is shown?

    Perhaps I should add some proper debugging infrastructure to the plugin…

    Regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    Does a track appear in the Track Management page of Trackserver? If not, can you check the contents of the ‘wp_ts_locations’ and ‘wp_ts_tracks’ tables in your WP database?

    I would love to help you find out what’s wrong, but you’re not nearly giving enough information.

    Regards,
    Martijn.

Viewing 15 replies - 391 through 405 (of 415 total)