WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Organizer
[resolved] Plugin Confliction? (7 posts)

  1. SL Blaise
    Member
    Posted 8 months ago #

    Hi,

    We are working on a site that requires the use of the maps marker plugin — ‘Leaflet Maps Marker’. However, there appears to be a confliction with Plugin Organizer. Even when all plugins are set to active the maps plugin does not work; with the Plugin Organizer disabled from the plugin menu the map works. Any suggestions?

    Thank you in advance.

    http://wordpress.org/plugins/plugin-organizer/

  2. Jeff Sterup
    Member
    Plugin Author

    Posted 8 months ago #

    What do you mean by it doesn't work? What does it do? Are there any javascript errors? Any warnings on your screen?

  3. SL Blaise
    Member
    Posted 8 months ago #

    Sorry I should have been a lot more specific than that!

    The markers are not showing up on the map. It must be a javascript error of some kind but all javascript files appear to be there; there is no javascript errors. The only thing I can think of is some kind of interference with the map API, but I am not sure whether that is possible or not?

  4. telfhimself
    Member
    Posted 8 months ago #

    Hey there, i am also having this problem and only started after installing this plugin.

    The page it can be found on is; http://www.ecohomeltd.com/wp/areas-installation/

    As you can see the map is displayed fine as well as the marker notes, its just the marker icons itself that are not appearing.

    After enabling Plugin Organizer, in the console i get two errors which only appear when enabled;

    Uncaught SyntaxError: Unexpected identifier (index):414
    (anonymous function) (index):414
    (anonymous function)

  5. RobertHarm
    Member
    Posted 8 months ago #

    Hi,
    I am the developer of the plugin "Leaflet Maps Marker". For me it seems there is a plugin conflict between my plugin and "plugin organizer".
    I am using the following code within my standalone-files to check if my plugin is active:

    function lmm_is_plugin_active( $plugin ) {
        $active_plugins = get_option('active_plugins');
        $active_plugins = array_flip($active_plugins);
        if ( isset($active_plugins[$plugin]) || lmm_is_plugin_active_for_network( $plugin ) ) { return true; }
    }
    function lmm_is_plugin_active_for_network( $plugin ) {
        if ( !is_multisite() )
            return false;
        $plugins = get_site_option( 'active_sitewide_plugins');
        if ( isset($plugins[$plugin]) )
                    return true;
        return false;
    }
    if (!lmm_is_plugin_active('leaflet-maps-marker/leaflet-maps-marker.php') ) {
        echo sprintf(__('The plugin "Leaflet Maps Marker" is inactive on this site and therefore this API link is not working.
    
    Please contact the site owner (%1s) who can activate this plugin again.','lmm'), antispambot(get_bloginfo('admin_email')) );
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    for an unknown reason to me, on http://www.ecohomeltd.com/wp/areas-installation/ respectively the GeoJSON-feed (http://www.ecohomeltd.com/wp/wp-content/plugins/leaflet-maps-marker/leaflet-geojson.php?layer=all&full=no&full_icon_url=no) which gets loaded in the background returns false for and therefore no markers are displayed on the layer map.

    On the other hand I installed "plugin organizer" on my test site and couldnt reproduce this issue (perhaps I havent used the "right" plugin-organizer-options).
    Help here would really be appreciated!
    best,

    Robert

  6. telfhimself
    Member
    Posted 8 months ago #

    Initially, it was set-up so within plugin organizer > global plugins, Leaflet Maps was turned off and was enabled on the 'areas of installation' page only... when turning 'MapsMarker' on via the global settings, the markers will be displayed, but that kind of defeats the purpose of the plugin...

  7. Jeff Sterup
    Member
    Plugin Author

    Posted 8 months ago #

    The map plugin is doing an Ajax hit. If you disable the plugin globally you will need to add a filter for the url that the Ajax uses and enable the map plugin on it. Basically you disabled the map plugin for the url that the Ajax hits use.

Reply

You must log in to post.

About this Plugin

About this Topic