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 cannot be previewed error #9775

Closed
byrd opened this issue Sep 11, 2018 · 9 comments
Closed

Block cannot be previewed error #9775

byrd opened this issue Sep 11, 2018 · 9 comments
Labels
[Status] Needs More Info Follow-up required in order to be actionable. [Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@byrd
Copy link

byrd commented Sep 11, 2018

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):

  • OS: IOS & Windows
  • Browser Chrome & Safari
  • Version [e.g. 22]
@youknowriad
Copy link
Contributor

The error message suggest you still have the "gravityforms" plugin active. Which block is causing this issue?

@youknowriad youknowriad added the [Status] Needs More Info Follow-up required in order to be actionable. label Sep 11, 2018
@byrd
Copy link
Author

byrd commented Sep 11, 2018

When I deactivate Gravity Forms, I'm left with this error:
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)

Here's a screenshot: https://screencast.com/t/HcmeDJCU

00000146

@youknowriad
Copy link
Contributor

Can you run your code with SCRIPT_DEBUG = true? and which block is causing this error? is it all the blocks?

@byrd
Copy link
Author

byrd commented Sep 12, 2018

I get the error. Here's a screenshot for reference: https://screencast.com/t/p6vsPytL

00000147

Uncaught (in promise) 
Object
code
:
"invalid_json"
message
:
"The response is not a valid JSON response."
__proto__
:
constructor
:
ƒ Object()
hasOwnProperty
:
ƒ hasOwnProperty()
isPrototypeOf
:
ƒ isPrototypeOf()
propertyIsEnumerable
:
ƒ propertyIsEnumerable()
toLocaleString
:
ƒ toLocaleString()
toString
:
ƒ toString()
valueOf
:
ƒ valueOf()
__defineGetter__
:
ƒ __defineGetter__()
__defineSetter__
:
ƒ __defineSetter__()
__lookupGetter__
:
ƒ __lookupGetter__()
__lookupSetter__
:
ƒ __lookupSetter__()
get __proto__
:
ƒ __proto__()
set __proto__
:
ƒ __proto__()

The script being referenced is: /wp-content/plugins/gutenberg/build/data/index.js?ver=1535740608

@youknowriad
Copy link
Contributor

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.

@SolespireMarcus
Copy link

180926-0001
I am getting the same problem on a clean install of WordPress 4.9.8 and Gutenberg 3.9.0.

@designsimply
Copy link
Member

designsimply commented Oct 25, 2018

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?

@designsimply
Copy link
Member

To Reproduce
Access page within admin area that had a previously registered block added to it.

I was unable to reproduce the problem using the following testing steps:

  1. Install Yoast SEO 9.2.1.
  2. Go to Posts > Add New and add a title.
  3. Add an FAQ block (comes with the Yoast plugin).
  4. Publish the page.
  5. Deactivate & Delete the Yoast plugin.
  6. Re-open the post created earlier.

Result: I see the following warning message:

Your site doesn’t include support for the "yoast/faq-block" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.

screen shot 2018-11-29 at 2 04 47 pm
Seen at https://tan-otter.jurassic.ninja/wp-admin/post.php?post=214&action=edit running WordPress 4.9.8 and Gutenberg 4.5.1 and Yoast SEO 9.2.1 using Firefox 63.0.3 on macOS 10.13.6.

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?

@designsimply designsimply added the [Type] Help Request Help with setup, implementation, or "How do I?" questions. label Nov 29, 2018
@CarlasHub
Copy link

I'm running into the same issue and getting the same error messages. Have you encountered a solution for this @byrd ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs More Info Follow-up required in order to be actionable. [Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

5 participants