• Resolved Julian

    (@juliangk)


    Hello dear support,

    as instructed in this thread, I am creating a new thread for the current issue.

    With the 7.7.0 update, I see following errors in the console:

    The block "woocommerce/product-radio" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-section" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-tab" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-schedule-sale-fields" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-track-inventory-fields" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-sku" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-checkbox" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-shipping-dimensions-fields" is registered with an invalid category "woocommerce". blocks.min.js:10:1003
    
    The block "woocommerce/product-shipping-fee-fields" is registered with an invalid category "woocommerce". blocks.min.js:10:1003

    This is the case with only WC activated.
    However, the problem is even worse. While working on an older theme, where the Gutenberg Editor is activated for WooCommerce products, the recent update completely breaks the editor. Using this snippet:

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

    we have activated the gutenberg editor for products. With v 7.5 everything was working completely fine. Now with version 7.7.0, following errors occur in the console while the editor is activated:

    Block "core/calendar" is already registered. blocks.min.js:3:89981
    Block "core/categories" is already registered. blocks.min.js:3:89981
    Block "core/freeform" is already registered. blocks.min.js:3:89981
    Block "core/code" is already registered. blocks.min.js:3:89981
    Block "core/column" is already registered. blocks.min.js:3:89981
    Block "core/columns" is already registered. blocks.min.js:3:89981
    Block "core/cover" is already registered. blocks.min.js:3:89981
    Block "core/embed" is already registered. blocks.min.js:3:89981
    Block "core/file" is already registered. blocks.min.js:3:89981
    Block "core/group" is already registered. blocks.min.js:3:89981
    Block "core/html" is already registered. blocks.min.js:3:89981
    Block "core/latest-comments" is already registered. blocks.min.js:3:89981
    Block "core/latest-posts" is already registered. blocks.min.js:3:89981
    Block "core/media-text" is already registered. blocks.min.js:3:89981
    Block "core/missing" is already registered. blocks.min.js:3:89981
    Block "core/more" is already registered. blocks.min.js:3:89981
    Block "core/nextpage" is already registered. blocks.min.js:3:89981
    Block "core/page-list" is already registered. blocks.min.js:3:89981
    Block "core/page-list-item" is already registered. blocks.min.js:3:89981
    Block "core/pattern" is already registered. blocks.min.js:3:89981
    Block "core/preformatted" is already registered. blocks.min.js:3:89981
    Block "core/pullquote" is already registered. blocks.min.js:3:89981
    Block "core/block" is already registered. blocks.min.js:3:89981
    Block "core/rss" is already registered. blocks.min.js:3:89981
    Block "core/search" is already registered. blocks.min.js:3:89981
    Block "core/separator" is already registered. blocks.min.js:3:89981
    Block "core/shortcode" is already registered. blocks.min.js:3:89981
    Block "core/social-link" is already registered. blocks.min.js:3:89981
    Block "core/social-links" is already registered. blocks.min.js:3:89981
    Block "core/spacer" is already registered. blocks.min.js:3:89981
    Block "core/table" is already registered. blocks.min.js:3:89981
    Block "core/tag-cloud" is already registered. blocks.min.js:3:89981
    Block "core/text-columns" is already registered. blocks.min.js:3:89981
    Block "core/verse" is already registered. blocks.min.js:3:89981
    Block "core/video" is already registered. blocks.min.js:3:89981
    Block "core/navigation" is already registered. blocks.min.js:3:89981
    Block "core/navigation-link" is already registered. blocks.min.js:3:89981
    Block "core/navigation-submenu" is already registered. blocks.min.js:3:89981
    Block "core/site-logo" is already registered. blocks.min.js:3:89981
    Block "core/site-title" is already registered. blocks.min.js:3:89981
    Block "core/site-tagline" is already registered. blocks.min.js:3:89981
    Block "core/query" is already registered. blocks.min.js:3:89981
    Block "core/template-part" is already registered. blocks.min.js:3:89981
    Block "core/avatar" is already registered. blocks.min.js:3:89981
    Block "core/post-title" is already registered. blocks.min.js:3:89981
    Block "core/post-excerpt" is already registered. blocks.min.js:3:89981
    Block "core/post-featured-image" is already registered. blocks.min.js:3:89981
    Block "core/post-content" is already registered. blocks.min.js:3:89981
    Block "core/post-author" is already registered. blocks.min.js:3:89981
    Block "core/post-author-name" is already registered. blocks.min.js:3:89981
    Block "core/post-date" is already registered. blocks.min.js:3:89981
    Block "core/post-terms" is already registered. blocks.min.js:3:89981
    Block "core/post-navigation-link" is already registered. blocks.min.js:3:89981
    Block "core/post-template" is already registered. blocks.min.js:3:89981
    Block "core/query-pagination" is already registered. blocks.min.js:3:89981
    Block "core/query-pagination-next" is already registered. blocks.min.js:3:89981
    Block "core/query-pagination-numbers" is already registered. blocks.min.js:3:89981
    Block "core/query-pagination-previous" is already registered. blocks.min.js:3:89981
    Block "core/query-no-results" is already registered. blocks.min.js:3:89981
    Block "core/read-more" is already registered. blocks.min.js:3:89981
    Block "core/comments" is already registered. blocks.min.js:3:89981
    Block "core/comment-author-name" is already registered. blocks.min.js:3:89981
    Block "core/comment-content" is already registered. blocks.min.js:3:89981
    Block "core/comment-date" is already registered. blocks.min.js:3:89981
    Block "core/comment-edit-link" is already registered. blocks.min.js:3:89981
    Block "core/comment-reply-link" is already registered. blocks.min.js:3:89981
    Block "core/comment-template" is already registered. blocks.min.js:3:89981
    Block "core/comments-title" is already registered. blocks.min.js:3:89981
    Block "core/comments-pagination" is already registered. blocks.min.js:3:89981
    Block "core/comments-pagination-next" is already registered. blocks.min.js:3:89981
    Block "core/comments-pagination-numbers" is already registered. blocks.min.js:3:89981
    Block "core/comments-pagination-previous" is already registered. blocks.min.js:3:89981
    Block "core/post-comments-form" is already registered. blocks.min.js:3:89981
    Block "core/home-link" is already registered. blocks.min.js:3:89981
    Block "core/loginout" is already registered. blocks.min.js:3:89981
    Block "core/term-description" is already registered. blocks.min.js:3:89981
    Block "core/query-title" is already registered. blocks.min.js:3:89981
    Block "core/post-author-biography" is already registered. blocks.min.js:3:89981
    Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). preload.js:136:52
    Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline festgestellt ("script-src"). Ein CSP-Bericht wird gesendet. preload.js:136:52
    Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("script-src"). preload.js:136:52
    Diese Seite verwendet die nicht standardisierte Eigenschaft "zoom". Stattdessen sollte calc() in den entsprechenden Eigenschaftswerten oder "transform" zusammen mit "transform-origin: 0 0" verwendet werden. post-new.php
    null bm-admin.min.js:1:3548
    TypeError: styleElement.sheet is null
    element-collapser.js:91:9
    Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline blockiert ("style-src"). element-collapser.js:88:56
    Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf inline festgestellt ("style-src"). Ein CSP-Bericht wird gesendet. element-collapser.js:88:56
    TypeError: e is undefined
        edit https://torantrieb-neu.loc:8888/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js:2
        React 9
    react-dom.min.js:10:53541
    MouseEvent.mozPressure sollte nicht mehr verwendet werden. Verwenden Sie PointerEvent.pressure stattdessen. tinymce.min.js:2:8856
    Diese Seite verwendet die nicht standardisierte Eigenschaft "zoom". Stattdessen sollte calc() in den entsprechenden Eigenschaftswerten oder "transform" zusammen mit "transform-origin: 0 0" verwendet werden. tinymce.min.js:2:85869
    Leerer String an getElementById() übergeben. analysis.js:332:39722
    TypeError: e is undefined
        edit https://torantrieb-neu.loc:8888/wp-content/plugins/woocommerce/assets/client/admin/product-editor/index.js:2
        React 9
    react-dom.min.js:10:53541
    Source-Map-Fehler: Error: request failed with status 404
    Ressourcen-Adresse: https://torantrieb-neu.loc:8888/wp-admin/post-new.php?post_type=product
    Source-Map-Adresse: style.css.map
    
    

    The product can not be edited, blocks can not be added or removed. When creating a new product, it is filled with WC blocks, that can not be edited or removed. No other blocks can be added either. Please see the screenshot here:

    Screenshot

    Thank you for your help, best regards
    Julian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Saif

    (@babylon1999)

    Hello @juliangk,

    Thank you for creating a new thread.

    we have activated the gutenberg editor for products. With v 7.5 everything was working completely fine. Now with version 7.7.0, following errors occur in the console while the editor is activated:


    WooCommerce products don’t support the Gutenberg editor by default; therefore, this is more of a customization request rather than a bug.

    The issue was previously mentioned in this thread, where another community member provided a custom solution. If having the Gutenberg editor for products is essential for you, then I suggest you try it out.

    Alternatively, with Site Editor enabled themes you can create a custom template for product post types or even individual products.


    Link to image: https://d.pr/i/ctek7E

    As for the initial issue, the team is currently working on it as mentioned in the comment from the previous thread. :?)

    Please let us know if you have any other questions!

    Thread Starter Julian

    (@juliangk)

    Hello @babylon1999,

    thank you very much for the link. I can confirm that the workaround is working, this solution is what I was looking for.

    As to this statement: “WooCommerce products don’t support the Gutenberg editor by default; therefore, this is more of a customization request rather than a bug.”

    Do you plan adding support at some point?

    Best regards
    Julian

    Hi @juliangk

    thank you very much for the link. I can confirm that the workaround is working, this solution is what I was looking for.

    You are most welcome and we’re glad that worked! ??

    Meanwhile, if you have a moment to spare, we would love it if you could share your thoughts with us by leaving a review or feedback. Your experience and feedback are important to help us improve and ensure we’re always providing the best possible support.

    As to this statement: “WooCommerce products don’t support the Gutenberg editor by default; therefore, this is more of a customization request rather than a bug.”

    Do you plan adding support at some point?

    I have no news about this yet but we truly understand the importance of this feature to you and we assure you that we are continuously working on enhancing the functionality and compatibility of our plugin.

    However, we appreciate your interest and feedback, and we invite you to submit a feature request for this option. Rest assured that we take our users’ feedback seriously and we always strive to improve our products.

    Please let us know if you have any further questions or concerns, and we’ll be happy to assist you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WC 7.7.0 Errors’ is closed to new replies.