• Resolved bushal

    (@bushal)


    Hi, and sorry – I have the same problem as a number of others and nothing they tried seemed to help.

    Using the latest version of Orux 7.4.22 and Mapmytracks.
    The server is a cpanel linux host, Workpress 5.3.2 on PHP 7.3 which i think has the correct extensions as below.

    I keep getting a message
    114.129.137.157 – – [02/Mar/2020:17:51:40 +1100] “POST /mapmytracks HTTP/1.1” 404 5911 “-” “Apache-HttpClient/UNAVAILABLE (java 1.5)”

    the trackserver options show
    Full custom URL: https://excessiveweaving.com.au/mapmytracks

    Any help would be wonderful as i have been going round for a while now.

    Thanks
    Al

    [lelalco1@s322 ~]$ php -m |egrep ‘dom|SimpleXML’
    dom
    SimpleXML

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

    (@tinuzz)

    Hi,

    If the ‘Full custom URL’ is what Trackserver shows in the profile, then there must be something weird with your setup.

    Trackserver tries to find out what the ‘blog URL’ is, which it seems to do correctly (https://excessiveweaving.com.au/). It then tries to match all incoming requests against the configured ‘slug’ for the endpoint for location updates (‘mapmytracks’). This is where things seem to fail, as this results in a 404. Unfortunately, I cannot explain this.

    If you’re comfortable with PHP, you should add some debugging code to the parse_request() function (file: class-trackserver.php, line 1425 in Trackserver v4.3.2).

    The MapMyTracks handling code starts at line 1485:

    https://github.com/tinuzz/wp-plugin-trackserver/blob/7fa62a6c1b0d7b5dd3d1a85603c8344a3f172e59/class-trackserver.php#L1485

    I would be interested in the values of $request_uri and $uri on line 1488. These should be the same, and in your setup they apparently are not.

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    My guess would be that you have a plugin conflict. Do you have any other plugins installed that hook into the parse_request hook?

    Best regards,
    Martijn.

    Thread Starter bushal

    (@bushal)

    I edited the file mentioned to add (before 1488)
    error_log( $request_uri );
    error_log( $uri );
    and get
    [02-Mar-2020 21:05:50 UTC] /.info.php
    [02-Mar-2020 21:05:50 UTC] /mapmytracks

    I then disabled all other plugins (this is a test wordpress site)

    Tracks started coming in..

    Enabling the other plugins one at a time shows that there is a conflict with Woocommerce – so probably not something that many sites will be running alongside yours, but still quite common.

    Thanks for your help
    Alastair Breingan

    Plugin Author tinuzz

    (@tinuzz)

    Great find. Good to hear that it works.

    The fact that the value of $request_uri is ‘/.info.php’ seems very strange to me.

    Best regards,
    Martijn.

    Thread Starter bushal

    (@bushal)

    That was just the first one I saw. If it helps i have also seen
    /trackserver/gettrack/
    /
    /tracks/
    I also saw https://excessiveweaving.com.au/mapmytracks in $uri on two occasions, but all others were /mapmytracks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Oruxmaps unable to connect’ is closed to new replies.