Support » Plugin: Jetpack by » Jetpack breaks Leaflet Maps Marker plugin

  • If you use Jetpack 2.0.4 together with my plugin Leaflet Maps Marker (v3.2.4 –, my maps get broken after the first connect to the wordpress account within Jetpack.

    I dont know what exactly happens within Jetpack, just as I look into the html source afterwards, I see the output of my global $lmmjs_out variable duplicated or sometimes even more often available. If I disconnect from WordPress account, output is normal again.

    I will implement a workaround for 3.2.5 but hope that someone from Automatic can take a look into this and see whats going on here. I´d be glad to help of course.
    best regards,


Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,
    unfortunately still no response from you – the error exists even with the latest update of Jetpack – please take a look into this issue – I´d be glad to help if you have any questions!

    Plugin Contributor Christopher Finke


    Hi Robert, I’m confirming that I can reproduce the problem with Leaflet Maps Marker 3.2.4 and the latest Jetpack, and that it goes away when the Publicize module is disabled. I’ll work on a fix.


    unfortunately, this bug is still not fixed with the latest version – any news when a fix will be available?

    Plugin Author Jeremy Herve


    Jetpack Mechanic 🚀


    The problem seems to be linked with the way your plugin handles shortcodes.

    A similar problem was reported in the NextGen plugin:

    You can find details about it in this WP-Hackers thread:

    Could you try to update your plugin based on Otto’s recommendations?

    Hi Jeremy,

    thanks for taking a look into this issue. I studied the posts you linked to and tried to fix it.
    Unfortunately with no success :-/

    In leaflet-maps-marker.php within the function lmm_frontend_enqueue_stylesheets()
    I use

    global $wp_query, $wp_version;
    $posts = $wp_query->posts;

    which from my understanding according to Otto should be the reason for this bug. I also talked to Ian Dunn who reported this problem and also thought that his case seems to be different.

    But even if I completely remove this code/css check the js output still gets duplicated. So as there
    is no other code/function within my plugin which uses $posts I wonder if this really is the
    reason for this bug.

    Any help would be really appreciated!


    bug got fixed with latest Jetpack release v2.2

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Jetpack breaks Leaflet Maps Marker plugin’ is closed to new replies.