-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 cannot be previewed error #9775
Comments
The error message suggest you still have the "gravityforms" plugin active. Which block is causing this issue? |
When I deactivate Gravity Forms, I'm left with this error: Here's a screenshot: https://screencast.com/t/HcmeDJCU |
Can you run your code with |
I get the error. Here's a screenshot for reference: https://screencast.com/t/p6vsPytL
The script being referenced is: /wp-content/plugins/gutenberg/build/data/index.js?ver=1535740608 |
It's better, I suspect you have a PHP notice/warning that's altering the JSON response of one of the XHR requests. So if you're able to look through the browser's devtools (network tab) and check the api call causing this? Also, it might be good to check the web server's error log because sometimes the warnings/notices... show up there. |
Are you able to check for errors in your browser developer tools inside the Network panel? If you spot an error there, can you take a screenshot or copy down the response from any failed API call you see? |
I was unable to reproduce the problem using the following testing steps:
Result: I see the following warning message:
Because updates have been made since this request was originally posted and because I was unable to reproduce the problem in testing, I will close the issue with a note for @byrd to please re-open once you have a chance to keep troubleshooting! @SolespireMarcus thank you for posting a screenshot. If you aren't seeing the same console errors, then your issue may be a different case. If you are still having trouble, may I please ask you to first make sure you have updated to the latest version of Gutenberg and then open a new issue and include as much information as you can about any errors you can find in your web developer tools console and network panels? |
I'm running into the same issue and getting the same error messages. Have you encountered a solution for this @byrd ? |
Describe the bug
Receive error message: "This block has encountered an error and cannot be previewed." The error began with the most recent update of WP. I tried deactivating all plugins on the site but this didn't resolve the problem.
Gutenberg Version 3.7.0
WP Version 4.9.8
Two errors show up in the console. The first is:
react-dom.min.82e21c65.js:110 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings. at Sg (react-dom.min.82e21c65.js:142) at m (react-dom.min.82e21c65.js:12) at ed (react-dom.min.82e21c65.js:65) at If (react-dom.min.82e21c65.js:82) at v (react-dom.min.82e21c65.js:84) at react-dom.min.82e21c65.js:88 at rd (react-dom.min.82e21c65.js:91) at O (react-dom.min.82e21c65.js:90) at yh (react-dom.min.82e21c65.js:104) at lg (react-dom.min.82e21c65.js:120)
The second error is:
`Jed localization error:
Error: Domain
gravityforms
was not found.s @ index.js?ver=1535740608:1
(anonymous) @ index.js?ver=1535740608:5
s @ index.js?ver=1535740608:1
d @ index.js?ver=1535740608:5
(anonymous) @ core.min.js?ver=1533153378:2307
webpack_require @ core.min.js?ver=1533153378:20
(anonymous) @ core.min.js?ver=1533153378:63
(anonymous) @ core.min.js?ver=1533153378:66
`
To Reproduce
Access page within admin area that had a previously registered block added to it.
Expected behavior
Should see the content blog in the page editor instead of the error message.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: