Title: Error registering block.
Last modified: June 2, 2025

---

# Error registering block.

 *  Resolved [Zaher (za-her)](https://wordpress.org/support/users/zaherg/)
 * (@zaherg)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/)
 * Hey there,
 * When trying to install the plugin from the missing block pattern
 * ![](https://i0.wp.com/i.imgur.com/QMaiPIv.png?ssl=1)
 * I get the following error
 * ![](https://i0.wp.com/i.imgur.com/W5E5v4q.png?ssl=1)
 * looking at the browser logs I can see the following warning message
 *     ```wp-block-code
       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
 * ![](https://i0.wp.com/i.imgur.com/dFvCRSL.png?ssl=1)
 * You can reproduce the issue using the following code
 *     ```wp-block-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](https://imgur.com/a/EIA3akx)

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

 *  Plugin Support [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18493873)
 * Hi [@zaherg](https://wordpress.org/support/users/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)](https://wordpress.org/support/users/zaherg/)
 * (@zaherg)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18493904)
 * > 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
 * ![](https://i0.wp.com/i.imgur.com/UcvjKTB.png?ssl=1)
 *  Plugin Support [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18493940)
 * Hi [@zaherg](https://wordpress.org/support/users/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.
 * ![](https://i0.wp.com/i.snipboard.io/yG4BFm.jpg?ssl=1)
 * ![](https://i0.wp.com/i.snipboard.io/u4dTIn.jpg?ssl=1)
 * 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)](https://wordpress.org/support/users/zaherg/)
 * (@zaherg)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18494058)
 * 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)](https://wordpress.org/support/users/zaherg/)
 * (@zaherg)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18494170)
 * looking deeper I can see some other warnings in the console log
 *     ```wp-block-code
       Block type "simplybook/widget" must support API version 2 or higher to work correctly with "useBlockProps" method.
       ```
   
 *  Thread Starter [Zaher (za-her)](https://wordpress.org/support/users/zaherg/)
 * (@zaherg)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18494175)
 * something outside of this issue, the plugin uri needs fixing
 * currently it is
 *     ```wp-block-code
        * Plugin URI: https://help.simplybook.me/index.php/WordPress_plugn
       ```
   
 * it should be
 *     ```wp-block-code
        * Plugin URI: https://help.simplybook.me/index.php/WordPress_plugin
       ```
   
 *  Plugin Support [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18495064)
 * Hey [@zaherg](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/simplybook/assets/icon-256x256.png?rev=3065290)
 * [SimplyBook.me - Booking and reservations calendar](https://wordpress.org/plugins/simplybook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplybook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplybook/)
 * [Active Topics](https://wordpress.org/support/plugin/simplybook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplybook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplybook/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/error-registering-block/#post-18495064)
 * Status: resolved