Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.38k stars 1.97k forks source link

Gutenberg 16.9/CoBlocks/ETK conflict: "The page-patterns plugin has encountered an error" #83654

Open liviopv opened 8 months ago

liviopv commented 8 months ago

Quick summary

After Gutenberg 16.9, Atomic sites are experiencing a bug where ETK's pattern selection modal will not display when creating a new page, triggering a The "page-patterns" plugin has encountered an error and cannot be rendered. error message.

It only happens when the 3 plugins are active: Gutenberg, CoBlocks, ETK. Disabling either one of the makes the error go away:

CleanShot 2023-10-30 at 15 22 42@2x

Steps to reproduce

  1. On an Atomic site, activate Gutenberg 16.9, WordPress.com Editing Toolkit, CoBlocks
  2. Go to Pages > Add new
  3. The pattern selector modal will not load and "The page-patterns plugin has encountered an error" will be shown at the top of the editor canvas.

What you expected to happen

The pattern selection modal should load correctly when loading new pages if ETK is active, no matter what other plugins are active.

What actually happened

The "page-patterns" plugin has encountered an error and cannot be rendered.

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Chrome 118, Mac Sonoma Gutenberg 16.9 CoBlocks 3.1.4 ETK 4.2070

cuemarie commented 8 months ago

šŸ“Œ REPRODUCTION RESULTS

šŸ“Œ FINDINGS/SCREENSHOTS/VIDEO Replicated as described. My browser console shows the following error:

Source map error: Error: request failed with status 404
Resource URL: https://atbugtesting.work/wp-content/plugins/full-site-editing/starter-page-templates/dist/starter-page-templates.min.js?ver=1698692271
Source Map URL: starter-page-templates.min.js.map

šŸ“Œ ACTIONS

Gustavo-Hilario commented 7 months ago

More reports here:

github-actions[bot] commented 7 months ago

Support References

This comment is automatically generated. Please do not edit it.

silvio-meter commented 7 months ago

Reported here:

pauljacobson commented 7 months ago

Al reported here: 7341396-zen with a follow-up here: 7341532-zen

ariel-maidana commented 7 months ago

7360857-zd-a8c Deactivating Coblocks solved it.

janmckell commented 7 months ago

7378575-zd-a8c Deactivating Coblocks solved it.

nazilya06 commented 5 months ago

7551741-zd-a8c

User reported the same error. They had CoBlocks and ETK active on their site. I have tried deactivating these plugins; however, it affected the appearance of the site.

Installing and activating Gutenberg resolved the issue.