• Resolved Zaher (za-her)

    (@zaherg)


    Hey there,

    When trying to install the plugin from the missing block pattern

    I get the following error

    looking at the browser logs I can see the following warning message

    The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.

    which points to the builds from your code

    You can reproduce the issue using the following code

    <!-- wp:simplybook/widget -->
    <div class="wp-block-simplybook-widget"></div>
    <!-- /wp:simplybook/widget -->

    just use it on a clean wordpress installation without the plugin installed.

    I created this video for you to check https://imgur.com/a/EIA3akx

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Jarno Vos

    (@jarnovos)

    Hi @zaherg,

    I hope I understood the question correctly; am I correct in assuming that you’re trying to use the Simplybook Widget (Block) without having the SimplyBook plugin installed on your website?

    If so, this certainly seems to be the cause of the issue you’re experiencing; you’ll need the latest version of SimplyBook in place to use the widget in question on pages of your WordPress site. In other words, this should start to behave as expected once you install the latest version of SimplyBook on the site.

    Kind regards, Jarno

    Thread Starter Zaher (za-her)

    (@zaherg)

    I hope I understood the question correctly; am I correct in assuming that you’re trying to use the Simplybook Widget (Block) without having the SimplyBook plugin installed on your website?

    Yes you are right

    If so, this certainly seems to be the cause of the issue you’re experiencing; you’ll need the latest version of SimplyBook in place to use the widget in question on pages of your WordPress site

    This is where you have missed the whole point from having the missing widget block, as clicking on the “Install Simplybook Widget” button will install the missing plugin and register the missing block for it.

    This is the same functionality that is provided when you search for a block that you don’t have, you will get some that you can just click to install and insert in the page without the need to go to the plugins page and install the plugin manually

    Plugin Support Jarno Vos

    (@jarnovos)

    Hi @zaherg,

    Ah yes, thanks for this clarification. That makes sense. It indeed seems that an “Error registering block…” warning appears after clicking the Install Missing Block button in this case.

    However, as soon I refresh the page once after clicking the “Install Missing Block” button; then everything works as expected and the block renders correctly (because the SimplyBook plugin is now installed, but a page refresh is necessary to fully register the change). I tested this on InstaWP as well.

    In short, clicking the button does install the plugin but an additional page refresh is required for the block to actually start rendering.

    Kind regards, Jarno

    Thread Starter Zaher (za-her)

    (@zaherg)

    Exactly, refreshing the page solve the issue, but it should not be required.

    1. The plugin should not produce any error
    2. The plugin should not require the refresh of the page to work.

    Older versions used to work without any problem, so something in the current new code is causing the issue.

    You can try the same thing with older versions or other plugins like contact-7 and you will see that there is no need to refresh the page.

    Otherwise, I would go and install the plugin manually then add the block instead of all of this.

    Thread Starter Zaher (za-her)

    (@zaherg)

    looking deeper I can see some other warnings in the console log

    Block type "simplybook/widget" must support API version 2 or higher to work correctly with "useBlockProps" method.
    Thread Starter Zaher (za-her)

    (@zaherg)

    something outside of this issue, the plugin uri needs fixing

    currently it is

     * Plugin URI: https://help.simplybook.me/index.php/WordPress_plugn

    it should be

     * Plugin URI: https://help.simplybook.me/index.php/WordPress_plugin
    Plugin Support Jarno Vos

    (@jarnovos)

    Hey @zaherg,

    Thanks a lot for your thorough feedback regarding these issues. I will address each of the individual points you mentioned below.

    1. SimplyBook Block after installing via editor – As you mentioned, the additional refresh to get the block to render (after installing it via the editor) shouldn’t be necessary. We will look into a fix for this behavior in an upcoming release, but it likely won’t be in time for the very next update yet.

    2. Block type “simplybook/widget” must support API version 2 – A fix is available and will be included in the next release (upon passing our testing routines).

    3. Plugin URI – Will be fixed in the next release.

    Thanks again for pointing all of these items out to us; it greatly helps to improve the plugin for all users!

    Kind regards, Jarno

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

The topic ‘Error registering block.’ is closed to new replies.