-
Notifications
You must be signed in to change notification settings - Fork 0
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
WSOD editing Jetpack plugin on jetpack.wp.a2z and jetpack.wp-a2z.org. Jetpack 11.3.1 #55
Comments
In my local env debug.log contains this, which could be a red-herring.
|
Or it could be related to this message, which leads to a 500 internal server error
|
Or it could be this message in the Console which occurs when switching
where url.js is https://c0.wp.com/c/6.0.2/wp-includes/js/dist/url.js When this error occurs a second and subsequent time there's more in the console log
with a helpful message to read https://reactjs.org/warnings/invalid-hook-call-warning.html |
By fiddling with the The problem occurs when the Show Block Link toggle is set and the prefix is Jetpack. I'll try rebuilding oik-batch with the latest wp-scripts and see what happens. See #47 |
On jetpack.wp-a2z.org I got this problem Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. |
The problem is because the description of the Jetpack Markdown block isn't a string.
the block.description for the Markdown block isn't a string. It's a The source for the Markdown block's
|
No. This is a different problem with Jetpack. I should raise an issue. Line 67 of jetpack_inc\lib\core-api\wpcom-endpoints\subscribers.php is
But in my local development environment, which is not connected, the 'subscribers' module isn't loaded. I had This may have caused the second part of the expression to be true.
|
OK, so I don't know how to deal with the
I'd attempted to deal with the block.description in two ways.
This worked in the Visual Editor but the block didn't save.
This works for all blocks except Jetpack's Markdown. It's a workaround rather than a solution. |
I think I've found the Gutenberg code that displays the block information I want to save. Its the |
It would appear that the I thought that maybe I should be using something like
But this results in the WSOD with react-dom.js:14936 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
Consider adding an error boundary to your tree to customize error handling behavior. |
|
The problem with saving the description field also applies to the |
Looks like I wasn't the only person affected by different routine's misuse of the description field. Gutenberg 14.1.1 was released to fix a similar problem with Search. See WordPress/gutenberg#44233 IMO the documentation for |
Having updated Jetpack to v11.3.1 I wanted to update the list of blocks that Jetpack delivers.
Attempting to edit the oik-plugins jetpack post in both jetpack.wp.a2z and jetpack.wp-a2z.org fails with a white screen of death (WSOD).
The text was updated successfully, but these errors were encountered: