You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Content Snippet" Block doesn't work and displays "This block has encountered an error and cannot be previewed.". The "Snippet Source Code" Block also fails.
Expected behavior
The blocks should work as expected without triggering any errors.
Steps to reproduce
Create or edit a post/page in Gutenberg.
Insert a "Content Snippet" or a "Snippet Source Code" Block.
Observe the error: "This block has encountered an error and cannot be previewed."
I wasn't able to verify the fix since i couldn't find the code snippets blocks in the block selection menu in Gutenberg
additionally i noticed this error in console:
Current behavior
The "Content Snippet" Block doesn't work and displays "This block has encountered an error and cannot be previewed.". The "Snippet Source Code" Block also fails.
Expected behavior
The blocks should work as expected without triggering any errors.
Steps to reproduce
WordPress version
6.7.1
Code Snippets version
3.6.6.1
Code Snippets license
Pro
Anything else?
PHP error.log:
The text was updated successfully, but these errors were encountered: