#63791 closed defect (bug) (worksforme)
file_get_contents() error: wp-emoji-loader.js missing in formatting.php line 5967
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 6.9 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
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
- Pull latest trunk. As of this writing, it's on https://github.com/WordPress/wordpress-develop/commit/7cf0bb5594ab336a2c919958378035e4bbf46db4
- 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
- Exact code that calls to
p-emoji-loader.php: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/formatting.php#L5967 - Try to switch to different official themes and you still see the error.
- Looking at
/wp-includes, there's nojsdirectory there as of this writing:
- 🐞 Bug occurs.
Expected Results
- ✅ Expected file should exists.
Actual Results
- ❌ What actually happened.
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-includeshas nojssubdirectory.- front-end:
Change History (5)
#3
@
8 months ago
Hi @rollybueno,
I tried reproducing the issue using the same version of trunk as you mentioned, but I wasn’t able to replicate it on my end.
Is there anything specific you’ve set up or done differently that I might be missing?
#4
@
8 months ago
- Keywords needs-patch removed
- Resolution set to wontfix
- Status changed from new to closed
Hey @westonruter,
Thanks, this never happens on my months old container even after countless trunk syncing before, not until early this morning. I used the npm run build:dev when resetting and rebuilding the container earlier but to no avail, thus falsely thought this was a bug on latest trunk merge then opened this ticket afterwards.
Using npm run dev fixed everything instead of that one. @vipulgupta003 thanks for looking this up. Closing here now
Cheers to both!
Note: See
TracTickets for help on using
tickets.


Did you run a build? You need to do
npm run build:dev. See https://github.com/WordPress/wordpress-develop?tab=readme-ov-file#to-start-the-development-environment-for-the-first-time(I do wish this build step wasn't required.)