• Resolved megabiteas

    (@megabiteas)


    Hi,

    I´ve installed your plugin and set up OruxMaps to track my trips. Tre trips get registered in “manage my trips” and i can view them through there. I´ve added the shortcode [tsmap user=oruxMaps] to the page where i want to show my track.

    When i then try to track a trip the first time, it seams to work. But then when i start a new tracking (either i “continue” “start new segment/trip”) the previous track disappears and i get an error: “Track missing from server response.
    Please reload the page.”

    But it seems like everytime i then go back to wordpress and resave/update the page – the newest track appears.

    My goal is:
    I´m biking for 30 days this summer and want to track and publish my progress on my website – how can i do this properly? At least if that´s not possible (to track total progress with stops etc), how can i set this up so i dont have to resave/update my page every time i finish a trip to be able to show it?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tinuzz

    (@tinuzz)

    Hi,

    When you get the error, it should be sufficient to reload the page, i.e. press F5, to display the latest track. If that doesn’t work, please let me know.

    The page keeps requesting the latest track for user X, but the response contains a track that is referenced by ID and the map is initialized using that ID. When a new track is started, the track with previous ID is no longer present in the server response, and the already initialized map still looks for the previous ID, hence the error. A page reload will re-init the map with the new ID. This can be considered a bug, but I’m not sure how easy it is to fix in a secure manner.

    There is no need to go into the WP backend and resave the page.

    About your goal, I’m not sure it’s very easy to do at this time, since Trackserver can display either the latest single track of a user, or a number of tracks by ID, but not the ‘latest X’ number of tracks for a user. One hack that might work, is to create a shortcode with a list of not-yet-existing track IDs, so that they will appear on the map once they exist. You just have to think in advance about how many tracks you will create.

    And remember that to display other users’ tracks ([tsmap user=oruxMaps] when the page author is not ‘oruxMaps’, or [tsmap id=x,y,z] where x,y,z are not /your/ tracks), you have to be a WP admin.

    Hope this helps,
    Martijn.

    Thread Starter megabiteas

    (@megabiteas)

    Hi,

    Thanks for getting back to me. I tried again with activating tracking, viewed the page – but the same error shows up: Tracks could not be loaded, 403 – access denied. Reload the page, still same issue. If i were to “update/re-save” the page itself now i believe it will work, like i mentioned in my previous post. But i can keep it like this now until you have a look at it, if you want.

    Thanks for the hack btw, that sounds like a clever idea =) But just would like to have it fixed first so that i dont have to re-save the page every time.

    Thread Starter megabiteas

    (@megabiteas)

    I think i might have figured it out. The author of the page was set to my original page admin, so i changed the author of the page to match the user in orux maps. Seems like that may have done the trick. I will take it for a spin and let you know if there are any issues =)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Having trouble showing the tracks’ is closed to new replies.