{ Dev Farm }

Web & Windows Development

GPX track loads without nggalleries photos

Home Forum Wp Gpx Maps Support GPX track loads without nggalleries photos

  • Questo topic ha 13 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 12 anni, 10 mesi fa da Bernhard.
Stai visualizzando 14 post - dal 1 a 14 (di 14 totali)
  • Autore
    Post
  • #23130 Rispondi
    Bernhard
    Ospite

    Hi,
    could you please give a quick look at http://www.citycyclingschool.at/radroute-albertinaplatz-schwedenplatz/ and help me to find out, what I’m doing wrong? The map and the gpx-track load regularily, when I do not include nggalleries. Both don’t load at all when I include “ngalleries”.
    On my testsite it works pretty fine! (http://www.citycyclingschool.at/testcity/albertina-schwedenplatz/)
    Thank you very much!
    Bernhard

    #23131 Rispondi
    max
    Membro

    Hi, the first website has multiple javascript errors.
    I think the problem is in the template. Your theme include a old version of jquery (1.4.4) and wordpress include a newer one (1.10.2). With both js library the thickbox.js is crashing and blocks my blugin
    You can edit your template header and manually delete the line with jquery-1.4.4.min.js script

    #23133 Rispondi
    Bernhard
    Ospite

    Hi, thank you very much for your fast reply! When I delete “jquery-1.4.4.min.js” in the header, the topmenu (lavalamp) stops working. (http://www.citycyclingschool.at/testcity/albertina-schwedenplatz/)
    Bernhard

    #23137 Rispondi
    max
    Membro

    Oh, some feature of your theme needs a old jquery..
    You might consider to upgrade your theme or move to another one..

    #23140 Rispondi
    Bernhard
    Ospite

    Upgrading the theme is unfortunately not possible. Switching to another theme right now, neither. On the other hand I wonder why all looks well on my testsite (http://www.citycyclingschool.at/testcity/albertina-schwedenplatz), although there are javascript conflicts, too.

    #23142 Rispondi
    max
    Membro

    The only difference between the two sites is the thickbox.js when is loaded it cause errors.
    It uses the function .on() that is not supported in the old jquery

    #23154 Rispondi
    Bernhard
    Ospite

    Hello Max,
    thank you for your patience. I appreciate that a lot and I am sorry to bother you again.
    Now I discovered:
    1). Wp Gpx Maps works fine on http://www.citycyclingschool.at/testcity/albertina-schwedenplatz/ even though I have removed the file “thickbox.js” from “…testcity/wp-includes/js/thickbox”
    2.) When I remove “thickbox.js” from “…citycyclingschool/wp-includes/js/thickbox”, Firebug says “Failed to load resource: the server responded with a status of 404 (Not Found) …/wp-includes/js/thickbox/thickbox.js?ver=3.1-20121105” and Wp Gpx Maps doesn’t load.
    Strange, isn’t it.

    #23155 Rispondi
    Bernhard
    Ospite

    The next step was to comment out the code lines from 192-202 in “…/citycyclingschool.at/wp-includes/script-loader.js” to prevent loading thickbox.js from the very beginning. Wp Gpx Maps is still not showing the pictures nor the gpx-track on http://www.citycyclingschool.at/radroute-albertinaplatz-schwedenplatz/ and Firebug says “Uncaught RangeError: Maximum call stack size exceeded …”.
    In testcity http://www.citycyclingschool.at/testcity/albertina-schwedenplatz/ the script-loader.js remains unchanged, thickbox.js is removed and the Firebug Console says “all fine”.

    #23159 Rispondi
    max
    Membro

    Oh, sorry! I found a problem with the old nggallery 1.9.x..
    Please update my plugin to new 1.2.1 versione and it should work again..

    #23160 Rispondi
    max
    Membro

    Ok a found the js problem..
    wait for the 1.2.2 release..

    #23162 Rispondi
    Bernhard
    Ospite

    Really? That would be marvellous! Thank you for your efforts!
    Bernhard

    #23170 Rispondi
    Bernhard
    Ospite

    Hi Max,
    I updated to version 1.2.2 and the map shows up marvellously together with the thumbnails! ()http://www.citycyclingschool.at/radroute-albertinaplatz-schwedenplatz) Well done!! Last missing tiny little step is that when clickling on a thumbnail the corresponding picture doesn’t become big. Chrome+F12 says everytime when clicking on a thumbnail:

    Uncaught TypeError: Cannot read property ‘childNodes’ of undefined WP-GPX-Maps.js?ver=1.2.2:383
    (anonymous function) WP-GPX-Maps.js?ver=1.2.2:383
    Q.trigger main.js:19
    (anonymous function) WP-GPX-Maps.js?ver=1.2.2:70

    (FYI: I deactivated loading thickbox.js by commenting out the lines in scriptloader.js)

    Best regards, Bernhard

    #23171 Rispondi
    max
    Membro

    ooookkkk, my fault, just sent the 1.2.3 I hope I’m not forgetting something else!

    #23172 Rispondi
    Bernhard
    Ospite

    I am delighted, it works! http://www.citycyclingschool.at/radroute-albertinaplatz-schwedenplatz/
    Thank you very very much!!
    Bernhard

Stai visualizzando 14 post - dal 1 a 14 (di 14 totali)
Rispondi a: Risposta #23131 in GPX track loads without nggalleries photos

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.