htmlburger / carbon-fields

WordPress Custom Fields Library ✨
https://carbonfields.net/
Other
1.4k stars 246 forks source link

Tutorial doesn't work (Theme options example) #1213

Open SamTyurenkov opened 10 months ago

SamTyurenkov commented 10 months ago

Version

Expected Behavior

I expect to see a custom field Text Fields in Theme Options as documented here https://carbonfields.net/docs/carbon-fields-plugin-quickstart-2/?crb_version=2-2-0

Actual Behavior

While Theme Options page is available in menu, the Text Field is not. Also there are errors in console. app.js?ver=3.6.3:1 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:2158 Uncaught TypeError: Cannot read properties of undefined (reading 'initialize') at admin.php?page=crb_carbon_fields_container_theme_options.php:2158:25

Container definition

I didnt understand this question

Steps to Reproduce the Problem

Well I created a new theme on a bedrock installation, dont have any plugins almost. Just query monitor, redis cache. I installed the plugin with composer and specified install path to mu-plugins. theme doesnt enqueue anything yet except gutenberg blocks.

Comments

Please add any other comments here

SamTyurenkov commented 10 months ago

Nevermind, I figured out its a problem on bedrock side. At least for now.

SamTyurenkov commented 10 months ago

i double checked, actually its carbon fields files, that appear with html appended