Opened 4 months ago
Closed 2 months ago
#7794 closed defect (bug) (worksforme)
Error Occurs on First Load of WordPress Pattern Creation Page, but Reload Resolves the Issue
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Pattern Directory | Keywords: | |
Cc: |
Description
When accessing the WordPress pattern creation page for the first time via the URL create new pattern, an error occurs. However, reloading the page resolves the issue, and the page loads as expected without any further problems.
Steps to Reproduce:
Open a browser and navigate to create new pattern.
Observe the error that occurs on the first load.
Reload the page.
The page now loads correctly.
Expected Behavior:
The page should load correctly on the first attempt without requiring a reload.
Actual Behavior:
The page encounters an error on the first load, but works after a reload.
Change History (4)
#2
@
4 months ago
I loaded the page and was prompted with "The editor has encountered an unexpected error".
Clicking "Copy Error" results in the log below.
TypeError: Cannot read properties of undefined (reading 'title')
at https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/editor/index.min.js?ver=920fbcffbef4cdefccc4:66:3636
at Array.some (<anonymous>)
at Ja (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/editor/index.min.js?ver=920fbcffbef4cdefccc4:66:3615)
at gt (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:45667)
at yr (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:56332)
at js (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:120992)
at Sl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88331)
at kl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88259)
at bl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88122)
at dl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:85300)
#3
@
4 months ago
Based on that error, Might be worth checking the Network tab as well to see if it's failing to fetch any resources. I suspect a javascript file is failing to load and the editor isn't handling it.
#4
@
2 months ago
- Resolution set to worksforme
- Status changed from new to closed
Without further details, there's nothing we can do to move this ticket forward.
I believe this was due to either transient network issues, or rate limits being applied to requests.
If this problem persists for anyone, please open an issue on this Github Repo:
https://github.com/WordPress/pattern-directory/issues/new/choose
Hi @parthvataliya,
Can you check your browser console for any errors?