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

Block validation failed when using the block inserter #40

Open
bobbingwide opened this issue Sep 25, 2020 · 2 comments
Open

Block validation failed when using the block inserter #40

bobbingwide opened this issue Sep 25, 2020 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

Block validation: Block validation failed for oik-block/blocklist (Object).

Content generated by save function:

and then a load of HTML.

See also bobbingwide/sb-toolicons-block#1

@bobbingwide
Copy link
Owner Author

One explanation for the invocation of the save function is because I'd coded example: {}. This causes the block to display a preview using default attributes.

I removed that code but it's still calling save().
And it continues to produce the block validation failed message.

@bobbingwide
Copy link
Owner Author

The differences betwen the generated by save and the retrieved from post body HTML
are that the links to the blocks are different

generated by save: https://s.b/wordpress/2020/09/24/address-oik-block-address
retrieved by post body: https://s.b/wordpress/?block=block-listaddress-oik-block-address

Perhaps the block list should default to not creating links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant