• Resolved Arnoud

    (@derice)


    Hi,

    When I use the following tag, no track is shown.

    [geo2 route=1 xmlUrl=https://example.com/wp-content/uploads/2021/07/sGPX_timestamp.gpx]

    I also tried to add quotes before/after the URL, no luck.
    However when I use the exact same URL in the settings page for Routes, it does show.

    Wordpress 5.8
    Clean setup with only Nextgen Gallery installed. Not even a theme.
    Looking to replace WP GPX Maps with this plugin, due to PHP8 incompatibility on that plugin.

    Am I missing something?

    • This topic was modified 2 years, 9 months ago by Arnoud.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author pablo2

    (@pablo2)

    Hey. I think I found a reason and I nearly finished an update. I’m sorry it took so long for me to respond. I’m quite busy with a refurbishment atm.

    Plugin Author pablo2

    (@pablo2)

    Please check the updated version.

    I will be grateful if you will leave a positive star rating.

    Kind regards,
    Pawel

    Thread Starter Arnoud

    (@derice)

    Thanks, it seems to work when I use a Nextgen gallery into a post.
    But not when I combine the “PID” tag for example with the “xmlUrl”

    How I build up my posts is:

    <text>
    <selected images from a gallery>
    <text>
    <selected image from the same gallery>
    <map with route + gallery thumbnails>

    With GPX Maps that would be a code like:
    sgpx nggalleries=324 gpx="/wp-content/uploads/2021/08/GPXFILE.gpx"]

    As there is no such option in Geo2Maps, I tried the following:
    [geo2 pid=10374,10372,10375,10373,10376,10375,10377,10379,10378,10380,10382,10384,10381,10383,10350,10352,10347,10346,10348,10349,10361,10363,10385,10354,10351,10355,10357,10353,10356,10358,10360,10359,10362,10364,10365,10369,10370 xmlUrl=/wp-content/uploads/2021/08/GPXFILE.gpx]

    This results in the thumbnails being displayed, but not the route.

    The route is only displayed when I build up the post like:

    <text>
    <text>
    <text>
    <text>
    [ngg src="galleries" ids="1" display="basic_thumbnail"]
    [geo2 xmlUrl=/wp-content/uploads/2021/08/GPXFILE.gpx] 

    Is there a way to make it work like my current setup? Specify the gallery to display in the tag like WP GPX Maps, or make both the xmlURL & PID tag work together?

    Plugin Author pablo2

    (@pablo2)

    Hi Arnoud,

    It seems that “pid” works together with “xmlurl” for me. [geo2 pid=133,156 route=1 xmlurl=http://www.mypageurl.com/wp-content/uploads/GPX/routhpatexamplename.gpx]

    Are you using only small letters now in “xmlurl” not “xmlUrl”

    You can also use a gallery id like [geo2 id=1]

    I realised that the above shortcode is only in the plugin description online. I will add it to the plugin itself.

    Please let me know if this helped.

    I also found one problem. When only a route path is selected a plugin searches for any galleries on a page instead of showing only the specified path.

    Thread Starter Arnoud

    (@derice)

    Thanks id=1 and lowercase xmlurl fixed my issue. 🙂

    Now for me to write a SQL script to replace the
    [sgpx nggalleries=324 gpx="/wp-content/uploads/2021/08/GPXFILE.gpx"]
    with
    [geo2 id=1 xmlurl=/wp-content/uploads/2021/08/GPXFILE.gpx]
    (the actual URL doesn’t need to be included in the statement).

    But that’s relatively simple (backup first ofcourse).
    Might be interesting to include in the plugin (or documentation) for others that would like to migrate from WP GPX Maps (https://nl.wordpress.org/plugins/wp-gpx-maps/)?
    That plugin is no longer maintained it seems (and only 1.7.0.2 works as it should. Not PHP8 compatible either).

    Plugin Author pablo2

    (@pablo2)

    Hi,
    I’m glad that it worked.

    What are you suggesting to include in the plugin or documentation?
    It’s not clear.

    I didn’t know that the relative path without a URL will work as well.
    Did you think about this?

    Kind regards
    Pawel

    Thread Starter Arnoud

    (@derice)

    I’m suggesting to include the SQL query (I still need to write) into the plugin.
    So others might easily migrate from WP GPX Maps to Geo2Maps.
    The query would replace the SGPX tag with the geo2 tag syntax. As both are quite similar it’s an easy “find and replace’ SQL query.

    The relative path works just fine. I always use relative paths, so I can run 2 copies of my website. 1 for test/dev and one for production. 🙂
    Saves me the hassle of updating paths within posts, when testing.

    Hi,
    Like Arnoud, I’m trying to show a map in wordpress containing a track (gpx file) and some geotagged pictures from a nextgen gallery. Shortcode something like:
    [geo2 id=3 xmlurl=/wp-content/uploads/2021/09/20210928054312-02044-data.gpx]

    I get a map centered on my home coordinates, no track and no pictures. I’ve turned on debug mode and it shows a lot of errors (below). Can you help to get this working?

    fyi: php 7.4.3 – wp 5.7.3
    Best regards,
    Paul

    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined variable: options in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1126
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined variable: album_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1233
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined variable: gallery_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1193
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined index: worldmap in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 950
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined variable: gallery_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1193
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined index: status in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1481
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined index: ajax in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1483
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined variable: map_output in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/geo2_fancybox3.php on line 40
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined variable: pic_desc in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/geo2_fancybox3.php on line 120
    [03-Oct-2021 11:21:10 UTC] PHP Notice:  Undefined variable: wordmap_echo in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/bing_map.php on line 668
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: options in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1126
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: album_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1233
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: gallery_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1193
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: options in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1126
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: album_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1233
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: gallery_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1193
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined index: worldmap in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 950
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: gallery_ids in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1193
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined index: status in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1481
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined index: ajax in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/functions.php on line 1483
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: map_output in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/geo2_fancybox3.php on line 40
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: pic_desc in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/geo2_fancybox3.php on line 120
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: wordmap_echo in /var/www/html/wordpress/wp-content/plugins/nextgen-gallery-geo/bing_map.php on line 668
    [03-Oct-2021 11:21:11 UTC] PHP Notice:  Undefined variable: string in /var/www/html/wordpress/wp-content/themes/zakra-child/functions.php on line 22
    Thread Starter Arnoud

    (@derice)

    You’re a bit behind on your WordPress and PHP version.
    Any reason why you’re not yet on PHP8 and WP 5.8.1?
    What version of the plugin are you using? Updating to 2.0.4 fixed it for me.

    Hi Arnoud,
    php 8 is not yet made available by the serviceprovider, so I can’t use it online. I will try it on my local server. The plugin is up-to-date and I have updated WP. That made no difference. I’ll keep you informed.

    Update: upgraded to php8 on my local server. Doesn’t work either. The undefined indexes are now undefined array keys.

    • This reply was modified 2 years, 6 months ago by polten.

    Another update: Managed to show the pictures from the gallery. Exif information was damaged. Map centers on the pictures. GPX track still isn’t showing.

    Final update: Used the full path (https://polten.be/&#8230;./xxx.gpx) and that does the job. Everything is running now.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Route/Track not shown’ is closed to new replies.