carbon-fields icon indicating copy to clipboard operation
carbon-fields copied to clipboard

Tutorial doesn't work (Theme options example)

Open SamTyurenkov opened this issue 1 year ago • 2 comments

Version

  • Carbon Fields Plugin : 3.6.3
  • Carbon Fields : 3.6.3
  • WordPress: 6.4.2
  • PHP: 8.1
  • Other: Bedrock installation, Carbon Fields plugin in mu-plugins folder, FSE-supported theme

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 avatar Jan 18 '24 16:01 SamTyurenkov

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

SamTyurenkov avatar Jan 18 '24 16:01 SamTyurenkov

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

SamTyurenkov avatar Jan 18 '24 17:01 SamTyurenkov

Are there any updates here? I've got the same issue.

AngeloKreienbuehl avatar Feb 08 '24 08:02 AngeloKreienbuehl