• Resolved LenVan

    (@krilike)


    Hello,

    I have 7 js errors in single gutenberg product page screen:

    Block "core/paragraph" is already registered.
    Block "core/image" is already registered.
    Block "core/heading" is already registered.
    Block "core/list" is already registered.
    Block "core/list-item" is already registered.
    Block "core/quote" is already registered.
    Block "core/video" is already registered.

    PHP: 8.0;
    WooCommerce: 7.8.2;
    WordPress: 6.2.2.

    WooCommerce registers these 7 blocks in woocommerce/assets/client/admin/components/index.js screen

    Theme custom (not blocks theme), 1 plugin “WooCommerce”.

    How to reproduce this: add this code to the function.php file:

    add_filter( 'use_block_editor_for_post_type', function( $can_edit, $post_type ) {
    	if ( 'product' === $post_type ) {
    		$can_edit = true;
    	}
    
    	return $can_edit;
    }, 10, 2 );

    I know, the WooCommerce doesn’t support the Gutenberg, but I have errors from WooCommerce plugin.

    Can You help me?

    Best Regards,
    Ivan.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block “core/paragraph” is already registered.’ is closed to new replies.