• Resolved ddany

    (@ddany)


    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)
  • Hello, you can share the url where you are using the map?

    Thread Starter ddany

    (@ddany)

    Thanks for the quickly answer.

    But for the moment, i test this plugin and after he worked, i put it online

    Can you try changing the theme?

    Thread Starter ddany

    (@ddany)

    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

    (@ddany)

    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.

    These days I will try to reproduce the error in a multisite installation, thanks

    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

    (@ddany)

    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

    (@ddany)

    	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

    "render": "file:./render.php",
      "style": "lib-css-map-block-leaflet",
      "viewScript": "lib-js-map-block-leaflet"
    }

    I use the latest version for block creation, https://developer.www.ads-software.com/block-editor/reference-guides/block-api/block-metadata/

    This way of creation is available since WordPress version 5.8
    Could it be that you are using an older version?

    Thread Starter ddany

    (@ddany)

    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

    (@ddany)

    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.

    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.