Title: Custom block error
Last modified: March 26, 2020

---

# Custom block error

 *  Resolved [grinstba](https://wordpress.org/support/users/grinstba/)
 * (@grinstba)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/)
 * So awhile back, I created a custom block with Block Lab and it worked perfectly.
   I went back to make a few changes and noticed that the wordpress editor was displaying
   the following message instead of the custom block on the page editor:
 * > your site doesn’t include support for the ‘block-lab/image-link’ block. You
   > can leave this block intact or remove it entirely.”
 * The custom block still renders on the webpage correctly, however, I cannot add
   new ones or modify the existing blocks.
 * I created the blocks by following these tutorials:
    [https://getblocklab.com/docs/get-started/create-your-first-block-lab-custom-block/](https://getblocklab.com/docs/get-started/create-your-first-block-lab-custom-block/)
   [https://getblocklab.com/docs/get-started/add-a-block-lab-block-to-your-website-content/](https://getblocklab.com/docs/get-started/add-a-block-lab-block-to-your-website-content/)
 * So my block file is located at theme/blocks/block-image-link.php and has the 
   following contents:
 *     ```
       <div class="image-link" style="background-image: linear-gradient( rgba(0,0,0,.7), rgba(0,0,0,.7) ), url(<?php block_field( 'image' ); ?>); height: <?php block_field( 'height' ); ?>px; width: <?php block_field( 'width' ); ?>px;">
       	<a href=<?php block_field( 'link' ); ?>></a>
       	<div class="image-link-label">
       		<p>
       			<?php block_field( 'label' ); ?>
       		</p>
       	</div>
       </div>
       ```
   
 * To me it seems that the plugin is searching for the custom block in the wrong
   location, but that is just my best guess.
 * Thanks for your help!
    -  This topic was modified 6 years, 2 months ago by [grinstba](https://wordpress.org/support/users/grinstba/).

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

 *  Plugin Author [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12584848)
 * Hi [@grinstba](https://wordpress.org/support/users/grinstba/),
    Sorry about that,
   it sounds frustrating to not see your block in the editor.
 * 1. Are there any errors in the JS console?
    2. What versions of Block Lab, WordPress
   Core, and Gutenberg (if it’s active) is the site running
 *  Plugin Author [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12584866)
 * The fact that the block renders fine on the front-end suggests that there’s nothing
   wrong with the PHP template that you shared above.
 *  Thread Starter [grinstba](https://wordpress.org/support/users/grinstba/)
 * (@grinstba)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12584872)
 * Wordpress: 5.2.2 (latest version is 5.3.2)
    Block Lab: 1.5.3 Gutenburg: not active
 * I uploaded an image of the console errors, it seems messy so sorry about that
 * > [Console Errors](https://imgur.com/a/KKOvRGt)
 * Another plugin called Advanced Gutenberg Blocks is also installed (v1.9.5.1),
   but I deactivated it and still had the same issue.
 * Thanks for your speedy response! Let me know if you need any other information
 *  Thread Starter [grinstba](https://wordpress.org/support/users/grinstba/)
 * (@grinstba)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12584875)
 * Also here is what I see on the edit page screen
 * > [Error on the edit page screen](https://imgur.com/a/ah4shoO)
 *  Plugin Author [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12593670)
 * Hi [@grinstba](https://wordpress.org/support/users/grinstba/),
    Thanks, that 
   console log helps. We’ve seen that issue before, but haven’t been able to reproduce
   it.
 * Could you please try this build of the latest version of Block Lab?
 * [https://github.com/getblocklab/block-lab/pull/523#issuecomment-605369210](https://github.com/getblocklab/block-lab/pull/523#issuecomment-605369210)
 * Sorry for the delay.
 *  Plugin Author [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12593675)
 * Also, would you be able to try upgrading Core to 5.3.2, or even better, 5.4-RC3?
 * Here’s a related issue in Gutenberg, though it doesn’t point to a solution:
    
   [https://github.com/WordPress/gutenberg/issues/18419](https://github.com/WordPress/gutenberg/issues/18419)
 *  Plugin Author [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12625870)
 * Hi [@grinstba](https://wordpress.org/support/users/grinstba/),
    This will probably
   fix the issue, could you please test this block-lab.zip file:
 * [https://github.com/getblocklab/block-lab/pull/524#issuecomment-608972897](https://github.com/getblocklab/block-lab/pull/524#issuecomment-608972897)
 * Thanks, and have a great weekend.
 *  Plugin Author [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12642781)
 * Closing for now, as there’s a fix linked to above. It’d be great if you could
   test this.

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

The topic ‘Custom block error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/block-lab_5c34e8.svg)
 * [Block Lab](https://wordpress.org/plugins/block-lab/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-lab/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-lab/)
 * [Active Topics](https://wordpress.org/support/plugin/block-lab/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-lab/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-lab/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/custom-block-error/#post-12642781)
 * Status: resolved