[wp-trac] [WordPress Trac] #63791: file_get_contents() error: wp-emoji-loader.js missing in formatting.php line 5967

WordPress Trac noreply at wordpress.org
Wed Aug 6 01:40:38 UTC 2025


#63791: file_get_contents() error: wp-emoji-loader.js missing in formatting.php
line 5967
--------------------------+-----------------------------
 Reporter:  rollybueno    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  major         |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 == Bug Report
 === Description
 Describe the bug.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.29.0
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 137.0.0.0
 - OS: Linux
 - Theme: Twenty Twenty 2.9
 - MU Plugins: None activated
 - Plugins:
   * Query Monitor 3.18.0
   * Test Reports 1.2.0

 === Steps to Reproduce
 1. Pull latest trunk. As of this writing, it's on
 https://github.com/WordPress/wordpress-
 develop/commit/7cf0bb5594ab336a2c919958378035e4bbf46db4
 2. Open front-end in incognito - you should see:
 {{{
 Warning: file_get_contents(/var/www/src/wp-includes/js/wp-emoji-
 loader.js): Failed to open stream: No such file or directory in
 /var/www/src/wp-includes/formatting.php on line 5967
 }}}
 3. Exact code that calls to `p-emoji-loader.php`:
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 includes/formatting.php#L5967
 4. Try to switch to different official themes and you still see the error.
 5. Looking at `/wp-includes`, there's no `js` directory there as of this
 writing:
 [[Image(https://i.imgur.com/xZ5UsKl.png)]]
 x. 🐞 Bug occurs.

 === Expected Results
 1.  ✅ Expected file should exists.

 === Actual Results
 1.  ❌ What actually happened.
 [[Image(https://i.imgur.com/bYd4lId.png)]]

 === Additional Notes
 - Just pull latest synced trunk.
 - Switching to different theme does not work.

 === Supplemental Artifacts
 - Exact code that calls to the file: https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-includes/formatting.php#L5967
 - `wp-includes` has no `js` subdirectory.
 - front-end:
 [[Image(https://i.imgur.com/bYd4lId.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63791>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list