Make WordPress Core

Opened 13 months ago

Closed 3 months ago

#61000 closed defect (bug) (worksforme)

Pattern Search for Command gives The editor has encountered an unexpected error.

Reported by: kapasias's profile kapasias Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.5
Component: General Keywords:
Focuses: javascript Cc:

Description

File : wp-includes/js/dist/blocks.min.js

First Create Pattern and Then Follow

Steps : https://www.loom.com/share/a4a1eb3c262546829dcb80224c39b048

Change History (5)

#2 @wildworks
13 months ago

Thanks for the report.

I was able to reproduce this issue in WP6.5, but it appears to have been fixed in the latest Gutenberg.

Testing Instructions

  1. Create a simple synced pattern in advance.
  2. Open the post editor.
  3. Insert the synced pattern you created earlier.
  4. Click the "Edit Original" button from the block toolbar.
  5. Move to pattern editing mode.
  6. Click the Document Title to launch the Command Palette.
  7. Enter some characters.
  8. Editor crashes.
  9. Enable Gutenberg plugin version 18.1.0.
  10. Repeat steps 2 to 7.
  11. The editor should not crash.

#3 @poena
13 months ago

@wildworks Do you know if the fix in Gutenberg is labeled to be included in the next minor release?

#4 @wildworks
13 months ago

Do you know if the fix in Gutenberg is labeled to be included in the next minor release?

In the issue reported in this ticket, the browser outputs the following error:

Uncaught TypeError: Cannot read properties of null (reading 'name')
    at isPossibleTransformForSource (blocks.js?ver=1cdc1594170000ce87b5:10138:36)

I found a Gutenberg PR (#59289) that fixes a similar error. This PR may also have fixed the issue reported in this ticket.

#5 @poena
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from assigned to closed

Hi
I have followed the testing instructions and confirmed that it has been fixed. I tested on WordPress 6.7.2. So I will close this ticket.

Note: See TracTickets for help on using tickets.