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

Custom HTML shows An unknown error occurred. #7188

Closed
mrdirby opened this issue Jun 6, 2018 · 5 comments
Closed

Custom HTML shows An unknown error occurred. #7188

mrdirby opened this issue Jun 6, 2018 · 5 comments
Labels
[Feature] Blocks Overall functionality of blocks [Status] Needs More Info Follow-up required in order to be actionable.

Comments

@mrdirby
Copy link

mrdirby commented Jun 6, 2018

When adding a custom html block I get an error that says "An unknown error occurred."

I just updated to version 3.0.1.

screen shot 2018-06-06 at 2 50 18 pm

@aduth
Copy link
Member

aduth commented Jun 6, 2018

Can you check your browser's developer tools console to see if there are any useful messages there after the error occurs? This may vary by browser, but it is usually accessible by the keyboard combination Press Ctrl+Shift+J (Windows / Linux) or Cmd+Opt+J (Mac).

@aduth aduth added [Feature] Blocks Overall functionality of blocks [Status] Needs More Info Follow-up required in order to be actionable. labels Jun 6, 2018
@mrdirby
Copy link
Author

mrdirby commented Jun 7, 2018

Sorry I should have checked in the first place. I'm using Chrome 67.0.3396.79 on High Sierra.

When I inspected that element I saw these errors.
screen shot 2018-06-07 at 10 35 07 am

I opened the same page in Firefox and the custom html field loaded. When I added some html and saved the changes the field worked in Chrome. Now all Custom HTML fields are working in Chrome.

I am seeing these errors still in the console, both in Chrome and Firefox. So obviously there is a conflict with ACF. I will keep testing Chrome and see if I can repeat the error again.

The hook name can only contain numbers, letters, dashes, periods and underscores. 105 index.js:1:3191
	u http://ghdev.test/app/plugins/gutenberg/build/hooks/index.js:1:3191
	c/< http://ghdev.test/app/plugins/gutenberg/build/hooks/index.js:1:3403
	add_action http://ghdev.test/app/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:433:5
	_add_action http://ghdev.test/app/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2427:4
	extend/< http://ghdev.test/app/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2388:5
	each http://ghdev.test/cms/wp-includes/js/jquery/jquery.js:2:2929
	extend http://ghdev.test/app/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2386:4
	<anonymous> http://ghdev.test/app/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2666:15
	<anonymous> http://ghdev.test/app/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:257:2

@mrdirby
Copy link
Author

mrdirby commented Jun 7, 2018

It seems like something wasn't loading before that is loading now. I can't recreate the error.

@mrdirby mrdirby closed this as completed Jun 7, 2018
@aduth
Copy link
Member

aduth commented Jun 7, 2018

Related: #6091

@ombion
Copy link

ombion commented Jun 29, 2018

I have this exact issue. It's not the browser. I happen to have 2 sites using Gutenberg. Using the same browser, one site works fine, and I get this error on the other site. The difference one site is installed under a sub directory, which I think is the problem. Custom HTML is an important block and this needs to be fixed with high priority. There's no other way to place custom HTML with Gutenberg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Status] Needs More Info Follow-up required in order to be actionable.
Projects
None yet
Development

No branches or pull requests

3 participants