-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font Library Pagination Footer JavaScript error: Uncaught RangeError: Invalid array length #59235
Comments
The pagination footer select list uses an array created from |
I was also able to reproduce this problem. In the case I encountered, I got the exact same error when I narrowed down the height of the browser. 63d343e1c02606df2f18a7330214f07b.mp4@pbking @matiasbenedetto, There may be a problem with the calculation of total pages. gutenberg/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js Lines 121 to 122 in 1eadcb9
|
Thank you for confirming. |
A potential fix for this is ready to review: #59241 |
Description
I've been trying to find the best way to reproduce this issue for the past two days, and it doesn't always show up. I have not been able to pin point what exact conditions triggers the error.
When I open the Font Library and click on the tab panel "Install fonts", I see "The editor has encountered an unexpected error".
It happens both with and without fonts installed.
Here is the content from the "Copy Error" button:
And here is the log.
localhost-1708514725259.log
Step-by-step reproduction instructions
In the Site Editor, open the Font Library from the Styles > Typopgraphy panel and click on the tab panel "Install fonts"
Screenshots, screen recording, code snippet
No response
Environment info
6.5-beta2-57673 on Local , using the beta tester nightly
6.5-beta2-57671-src which is my current copy of wordpress-develop.
With and without Gutenberg trunk.
Tested on Twenty Twenty-Four and on a custom block theme that does not add any font families.
-Untested on 6.4.3.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: