[wp-trac] [WordPress Trac] #61426: Upload Fonts: Invalid parameter(s): font_family_settings

WordPress Trac noreply at wordpress.org
Thu Jun 13 09:58:29 UTC 2024


#61426: Upload Fonts: Invalid parameter(s): font_family_settings
--------------------------+------------------------------
 Reporter:  benniledl     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by mathieulamiotwpmedia):

 == Reproduction Report
 === Description
 This report validates whether a related issue can be reproduced. The exact
 reported error could not be reproduced, but a bad behavior was seen.

 === Environment
 - WordPress: 6.5.4
 - PHP: 8.1.23
 - Server: nginx/1.16.0
 - Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.23)
 - Browser: Chrome 125.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Four 1.1
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.1.0

 === Steps to Reproduce
 1. Generate a woff2 font with missing Font Family metadata. To do this, I
 uploaded
 {{{
 /wp-
 content/themes/twentytwentyfour/assets/fonts/cardo/cardo_italic_400.woff2
 }}}
 to [https://products.aspose.app/font/metadata/woff2], emptied the "Font
 Family" field, then saved to download the modified font file.
 2. Navigate to the Font upload pop-up:
    - Go on the WP Admin dashboard, into Appearance -> Theme.
    - Click "Customize" on the currently applied theme.
    - Click on the a part of the page to move to the page editor.
    - In the "Styles" menu on the left, click on Typography.
    - Click the "settings/configuration" icon next to "Fonts" to open a
 font management pop-up.
    - Go to the "Upload" tab.
 3. 🐞  Upload the modified file you generated at step 1. The loading
 animation starts.

 === Expected Results
 1. ✅ The loading animation disappears after a few seconds. The following
 message is displayed: ''Fonts were installed successfully.''
 2. The font is added to the font library and available to be used.

 === Actual Results
 1.  ❌ The loading animation never ends. No error messages are displayed.
 2.  ❌ The font is not added to the font library.

 === Additional Notes
 - I could not find the error reported by the ticket creator.
 - Unlike the original description, a woff2 file with ''Font Name''
 metadata missing worked as expected (same reproduction step, but emptying
 Font Name instead of Font Family in step 1).

 === Supplemental Artifacts
 - Attached Woff2 file reproducing the issue (from step 1):
 cardo_italic_400_noFamily.woff2
 - Attached screenshot of Actual Result 1

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61426#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list