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

Improve the widgets initialization examples #35

Open
m1r0 opened this issue May 30, 2018 · 2 comments
Open

Improve the widgets initialization examples #35

m1r0 opened this issue May 30, 2018 · 2 comments

Comments

@m1r0
Copy link

m1r0 commented May 30, 2018

The widgets initialization examples are a bit misleading and some users have problems with the autoloading (htmlburger/carbon-fields#532).

@brianpurkiss
Copy link

I've run into this issue but it's for blocks instead of widgets.

"Fatal error: Uncaught Error: Class 'Carbon_Fields\Block' not found"

Copy/pasting the blocks code from the documentation page results in this error for me: https://docs.carbonfields.net/#/containers/gutenberg-blocks

Thanks to the above linked thread I should be able to fix this, but I agree, some documentation improvements would be nice.

(thanks for the awesome plugin!)

@brianpurkiss
Copy link

I wonder if I found the issue, still digging.

From here: https://carbonfields.net/docs/carbon-fields-plugin-quickstart/

I followed the Without Composer instructions, which means I don't have the autoloader portion used. Maybe my "Fatal error: Uncaught Error: Class 'Carbon_Fields\Block' not found" error is because I didn't use Composer?

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

2 participants