Title: Error loading block: Invalid parameter(s): attributes
Last modified: September 9, 2019

---

# Error loading block: Invalid parameter(s): attributes

 *  [wshealy](https://wordpress.org/support/users/wshealy/)
 * (@wshealy)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/)
 * Error loading block: Invalid parameter(s): attributes
 * I get this error when I try to insert a flex block into Gutenberg.
    Tried uninstalling
   and reinstalling.
 * Any help would be appreciated.
    Wallace

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

 *  Thread Starter [wshealy](https://wordpress.org/support/users/wshealy/)
 * (@wshealy)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-11914674)
 * This seems to be a conflict with Gutenberg Blocks and Template Library by Otter
 *  Plugin Author [Tajam](https://wordpress.org/support/users/tajam/)
 * (@tajam)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-11915936)
 * Thanks for your report. We will try to investigate this issue, but have you also
   tried contacting the developer of Otter plugin about this? Because other plugin
   like WooCommerce blocks also has the same error when the Otter plugin is active.
 *  [Brian Henry](https://wordpress.org/support/users/brianhenryie/)
 * (@brianhenryie)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-12144023)
 * I have reported it:
 * [https://wordpress.org/support/topic/breaks-flex-posts-block/](https://wordpress.org/support/topic/breaks-flex-posts-block/)
 *  [Brian Henry](https://wordpress.org/support/users/brianhenryie/)
 * (@brianhenryie)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-12152442)
 * Here’s a fix:
 *     ```
       /**
        * Add the "Blocks CSS: CSS Editor for Gutenberg Blocks" plugin attributes to the Flex Posts attributes so the WordPress
        * REST API schema validates.
        *
        * @hooked flex_posts_attributes
   
        * @see https://wordpress.org/plugins/blocks-css/
        * @see flex_posts_register_block() block.php:31
        * @see register_block_type()
        *
        * @param  array    $attributes The validation schema as registered with register_block_type().
        * @return array    $attributes
        */
       add_filter( 'flex_posts_attributes', function( $attributes ) {
   
       	include_once ABSPATH . 'wp-admin/includes/plugin.php';
       	if( is_plugin_active( 'blocks-css/blocks-css.php' ) ) {
   
       		$attributes['hasCustomCSS'] = array(
       			'type'    => 'boolean',
       			'default' => false,
       		);
       		$attributes['customCSS']    = array(
       			'type'    => 'string',
       			'default' => '',
       		);
   
       	}
   
       	return $attributes;
       });
       ```
   
 * …and I’ve created a PR to fix it for all plugins:
    [https://github.com/Codeinwp/blocks-css/pull/5](https://github.com/Codeinwp/blocks-css/pull/5)
    -  This reply was modified 6 years, 6 months ago by [Brian Henry](https://wordpress.org/support/users/brianhenryie/).
 *  Plugin Author [Tajam](https://wordpress.org/support/users/tajam/)
 * (@tajam)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-12158901)
 * [@brianhenryie](https://wordpress.org/support/users/brianhenryie/) Thanks a lot
   for your help in this issue. We really appreciate it.
 *  Plugin Author [Tajam](https://wordpress.org/support/users/tajam/)
 * (@tajam)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-12158906)
 * [@wshealy](https://wordpress.org/support/users/wshealy/) for the “Gutenberg Blocks
   and Template Library by Otter” plugin, you can use the code above by [@brianhenryie](https://wordpress.org/support/users/brianhenryie/),
   but change the plugin check line:
 * `if ( is_plugin_active( 'blocks-css/blocks-css.php' ) ) {`
 * with this:
 * `if ( is_plugin_active( 'otter-blocks/otter-blocks.php' ) ) {`
    -  This reply was modified 6 years, 6 months ago by [Tajam](https://wordpress.org/support/users/tajam/).
 *  [Marco](https://wordpress.org/support/users/michelyweb/)
 * (@michelyweb)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-12668247)
 * Same Error “Error loading block: Invalid parameter(s): attributes” in Block Editor
   when “Essential Blocks for Gutenberg” ([https://wordpress.org/plugins/essential-blocks/](https://wordpress.org/plugins/essential-blocks/))
   is active.

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

The topic ‘Error loading block: Invalid parameter(s): attributes’ is closed to new
replies.

 * ![](https://ps.w.org/flex-posts/assets/icon-128x128.png?rev=1871802)
 * [Flex Posts - Widget and Gutenberg Block](https://wordpress.org/plugins/flex-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/flex-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/flex-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flex-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flex-posts/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Marco](https://wordpress.org/support/users/michelyweb/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/error-loading-block-invalid-parameters-attributes/#post-12668247)
 * Status: not resolved