Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SamTyurenkov opened this issue Jan 18, 2024 · 2 comments
Open

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

SamTyurenkov opened this issue Jan 18, 2024 · 2 comments

Comments

@SamTyurenkov
Copy link

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
Copy link
Author

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

@SamTyurenkov
Copy link
Author

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

@SamTyurenkov SamTyurenkov reopened this Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant