• Resolved hhollick

    (@hhollick)


    PublishPress Blocks appear to be conflicting with the block editor on my site. When I try click “Toggle block inserter” or attempt to insert a block while editing, I get an unexpected error with the option to Attempt Recovery, Copy Post Text, or Copy Error (See error screen shot)

    Here is the result when I “Copy Error.” Any help would be appreciated.

    Dl@https://heatherhollick.com/wp-includes/js/dist/block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12:182805
    Na@https://heatherhollick.com/wp-includes/js/dist/block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12:219656
    we@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:84:294
    zj@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:226:498
    Th@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:225
    tj@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:154
    Te@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:153
    Te@[native code]
    @https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:69
    unstable_runWithPriority@https://heatherhollick.com/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:261
    Pg@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:16
    ha@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:453
    @https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:236:61
    Ei@https://heatherhollick.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:41:90
    Ei@[native code]

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author htmgarcia

    (@htmgarcia)

    Hi @hhollick,
    do yo have other plugins that add blocks to Gutenberg?

    Thread Starter hhollick

    (@hhollick)

    My site uses Beaver Builder. Could that be related?

    I also use Admin Columns Pro.

    I don’t think any of the other plugins add blocks to Gutenberg.

    Plugin Author htmgarcia

    (@htmgarcia)

    Try deactivating (NOT uninstalling) those plugins, one by one and see if the issue is gone. This test may tell us if there is a conflict with a plugin.

    Thread Starter hhollick

    (@hhollick)

    Hmmmm. Good exercise. I went through and tested all of my other plugins. It looks like PublishPress is conflicting with The Events Calendar (or vice versa). When both of those plugins are active, I get the error described above.

    There is no error when either PublishPress Blocks or The Events Calendar is deactivated.

    Plugin Author htmgarcia

    (@htmgarcia)

    Good catch, @hhollick ! Are you using the Events Calendar free or pro version?

    Thread Starter hhollick

    (@hhollick)

    I’m using the free version of Events Calendar.

    Plugin Author htmgarcia

    (@htmgarcia)

    Thanks for the information, @hhollick !

    I get the error message in console:
    Error: Block type 'core/legacy-widget' is not registered.

    My guess tells me this could be the root cause. While PublishPress Blocks register this block type, when The Events Calendar plugin is active this block is not listed as registered.

    Would you mind asking to The Events Calendar if they unregister ‘core/legacy-widget’ and reply back to this thread?

    Hi @htmgarcia,

    I was looking into this after @hhollick reported this over on: https://ww.wp.xz.cn/support/topic/does-the-events-calendar-unregister-core-legacy-widget/

    I think I might have found the lines where the problem is being originated from, bare with me since that is a compile file so you might need to look on the original files for those references.

    plugins/advanced-gutenberg/assets/blocks/blocks.js@L21197

    to

    plugins/advanced-gutenberg/assets/blocks/blocks.js@L29135

    Those seem to be pushing a new version of the core/legacy-widget into seems to be happening after we already established a reference of dependency to that particular Block as an InnerBlock of our widgets.

    I might be 100% wrong, and would love to chat to figure out what is actually happening.

    best Regards,

    Plugin Author htmgarcia

    (@htmgarcia)

    Plugin Author htmgarcia

    (@htmgarcia)

    @hhollick please update to 2.11.3 and see if the issue is fixed.

    Thread Starter hhollick

    (@hhollick)

    😁

    It looks like it is fixed.

    I created a new post and was able to add blocks or “toggle block inserter” without an error.

    I love the WordPress community.

    Heather

    Plugin Author htmgarcia

    (@htmgarcia)

    Wonderful! Thanks for using PublishPress Blocks.

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

The topic ‘Toggle block inserter causes unexpected error’ is closed to new replies.