roots / bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure
https://roots.io/bedrock/
MIT License
6.15k stars 1.16k forks source link

html appended to core javascript files #704

Closed SamTyurenkov closed 7 months ago

SamTyurenkov commented 7 months ago

Version

6.4.2

What did you expect to happen?

core js files to correctly work

What actually happens?

html appended to core js files

Steps to reproduce

As far as i can see it reproduces with twenty-twenty-four and my custom fse theme. no plugins installed.

i have maybe unusal environment - server components are in docker. but that should not affect js files for sure.

I think this related to FSE specifically

System info

im running on docker containers, images names are php8.1-fpm, nginx on top of debian:buster-slim image, redis, mariadb:11

Log output

when inpspecting those js files, I can see <!DOCTYPE and html from header and footer appended to them. I think this is caused by require wp blog header in index.php of bedrock


Uncaught SyntaxError: Unexpected token '<' (at app.js?ver=3.6.3:1:1)
vendor.js?ver=3.6.3:1 Uncaught SyntaxError: Unexpected token '<' (at vendor.js?ver=3.6.3:1:1)
core.js?ver=3.6.3:1 Uncaught SyntaxError: Unexpected token '<' (at core.js?ver=3.6.3:1:1)
metaboxes.js?ver=3.6.3:1 Uncaught SyntaxError: Unexpected token '<' (at metaboxes.js?ver=3.6.3:1:1)
admin.php?page=crb_carbon_fields_container_theme_options.php:2163 Uncaught TypeError: Cannot read properties of undefined (reading 'initialize')
    at admin.php?page=crb_carbon_fields_container_theme_options.php:2163:25

Please confirm this isn't a support request.

Yes

SamTyurenkov commented 7 months ago

i was mistaken, this is not bedrock issue