Title: Plugin work ?
Last modified: August 21, 2023

---

# Plugin work ?

 *  Resolved [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/)
 * Hello, sorry for my english.
 * I just download this plugin to use with gutenberg. When i want to add this block
   in admin page, no problem, i see the map, i can add a marker.
 * But when i got to the front page, i see nothing.
 * Any idea ? Thanks in advance

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [goiblas](https://wordpress.org/support/users/goiblas/)
 * (@goiblas)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-16989329)
 * Hello, you can share the url where you are using the map?
 *  Thread Starter [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-16989467)
 * Thanks for the quickly answer.
 * But for the moment, i test this plugin and after he worked, i put it online
 *  Plugin Author [goiblas](https://wordpress.org/support/users/goiblas/)
 * (@goiblas)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-16989559)
 * Can you try changing the theme?
 *  Thread Starter [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-16989560)
 * I’m on a multisite wordpress WordPress 5.9.3.
 * I try the 2.2.1 and 3.0.0 version of this plugin.
 *  Thread Starter [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-16989573)
 * I use our theme . I download twenty and same thing.
 * But in the content html, i dont see no tag of plugin. i try to put echo ‘coucou’
   in render.php and no echo in front.
 *  Plugin Author [goiblas](https://wordpress.org/support/users/goiblas/)
 * (@goiblas)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-16989985)
 * These days I will try to reproduce the error in a multisite installation, thanks
 *  Plugin Author [goiblas](https://wordpress.org/support/users/goiblas/)
 * (@goiblas)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-16999932)
 * I have tested in a new installation in a multisite with the Twenty Twenty-Three
   theme and it works.
 * Can you try disabling other plugins?
 *  Thread Starter [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-17009493)
 * Hello,
 * I try also, download the twenty theme, move all plugin and mu-plugins, and no
   map html code in front. its weird.
 *  Thread Starter [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-17009577)
 *     ```wp-block-code
       	register_block_type(
               __DIR__ . '/build/leaflet-map-block',
               [
                   'render_callback' => function($block_attributes, $content ) {
                       $attributes = $block_attributes;
                       include_once 'build/leaflet-map-block/render.php';
                   }
               ]
           );
       ```
   
 * When i do this, i have the tag html page but a javascript error L is undefined.
 * And in all plugins gutenberg that i have i dont see the file render.php in block.
   json
 *     ```wp-block-code
       "render": "file:./render.php",
         "style": "lib-css-map-block-leaflet",
         "viewScript": "lib-js-map-block-leaflet"
       }
       ```
   
 *  Plugin Author [goiblas](https://wordpress.org/support/users/goiblas/)
 * (@goiblas)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-17013518)
 * I use the latest version for block creation, [https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/)
   
   This way of creation is available since WordPress version 5.8Could it be that
   you are using an older version?
 *  Thread Starter [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-17041234)
 * Sorry for the delay, but too much project.
 * Today, i return to this block in my multisite. I pass my half of day to debug,
   failed.
 * I just download a fresh version of wordpress 5.9.7 and i just put the plugin 
   and same error, no map in front.
 * Do you forget to put some dependencies ?
 *  Thread Starter [ddany](https://wordpress.org/support/users/ddany/)
 * (@ddany)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-17041469)
 * ok, i see the plugin cant work before 6.1.0, its marked on the documentation,
   the render is available since 6.1.0…
 * If you are ok, please change the version in plugin documentation or explain me
   if im wrong.
 *  Plugin Author [goiblas](https://wordpress.org/support/users/goiblas/)
 * (@goiblas)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-17041510)
 * absolutely right! I am going to update the minimum version required, thanks

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Plugin work ?’ is closed to new replies.

 * ![](https://ps.w.org/map-block-leaflet/assets/icon-128x128.png?rev=3066247)
 * [Map Block Leaflet](https://wordpress.org/plugins/map-block-leaflet/)
 * [Support Threads](https://wordpress.org/support/plugin/map-block-leaflet/)
 * [Active Topics](https://wordpress.org/support/plugin/map-block-leaflet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/map-block-leaflet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/map-block-leaflet/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [goiblas](https://wordpress.org/support/users/goiblas/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-work-2/#post-17041510)
 * Status: resolved