• Hi

    Can you explain to me about the settings on the WordPress side.
    I created a sheet and put the [tsmap] shortcode and made the settings on the app side, but it gives me the error message of connecting to the server. I also made the settings on the app side according to the guide and I am sure of it.
    Please explain how to use the shortcode and its settings in WordPress, and is there anything else that needs to be done in addition to putting the shortcode?
    thanks

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

    (@tinuzz)

    Sorry, but:

    • What is a “sheet”?
    • Which app?
    • What error message?
    • Which guide?
    • Did you read the FAQ?

    If you expect help, you really have to try A LOT harder to explain your problem.

    • This reply was modified 1 month, 1 week ago by tinuzz.
    Thread Starter shoja

    (@shoja)

    Thank you very much for your quick response
    I created a page called trackserver and ran the short code [tsmap] in it, when I preview before publishing, the map is displayed, but when I publish, the preview page gives the message Access denied. I use the trackme app in the app as well. It gives the error of uploading position (servser error result: 7). Meanwhile, I also read the FAQ.

    I apologize for my poor English
    thanks

    Plugin Author tinuzz

    (@tinuzz)

    Please do not call your page ‘trackserver’, as it will conflict with Trackserver’s main slug, that is used for uploading data and for the shortcode. This is where the ‘Access denied’ comes from, your browser is talking to Trackserver directly.

    But before you try to do anything at all with the shortcode and map display, make sure you have some tracks in your database, otherwise there is nothing to show on the map.

    I must admit I haven’t used TrackMe for a while, not do I test it extensively anymore, but it still seems to work for me on the latest development version of Trackserver. Also, ‘result: 7’ means ‘Track not found’ and it should not occur when uploading a track position, it is used with other functionality like deleting tracks. Can you maybe share a screenshot of TrackMe when you have started recording?

    Thread Starter shoja

    (@shoja)

    screenshot of trackme app (link https://danashi.ir/screenshot/)

    main page for short code

    https://danashi.ir/trackme/

    Plugin Author tinuzz

    (@tinuzz)

    Hi.

    I have identified the place where the ‘Result: 7|Server error’ is coming from, namely here. So indeed something is going wrong in your setup, but I do not know what it is.

    Did you check your PHP logs for errors?

    If you’re comfortable editing and debugging a bit of PHP… I’m interested in what the value of $track->id is at lines 303 and 314 of class-trackserver-trackme.php.

    At those lines (one at a time), you could insert:

    $this->trackme_result( 7, 'Track ID: ' . print_r( $track->id, true ) );

    The TrackMe app should display it in the error message when you start the recording. A screenshot of this could help me troubleshoot the issue.

    Just to be clear: do this on line 303 first, get a screenshot of the error, then remove it from line 303, add it on line 314 and make another screenshot.

    But please also check PHP and MySQL error logs!

    Martijn.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.