-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
wp.components.ServerSideRender throws an error, Gutenberg editor doesn't load #18419
Comments
@jorgefilipecosta can you investigate? |
Hi @xavortm thank you for reporting this issue. @gziolo thank you for bringing this issue to my attention. I was not able to replicate this problem on the WordPress 5.3 RC5. I even created a test block to try the possible uses of ServerSideRender including deprecated ones
And things worked as expected. @xavortm could you confirm if you are testing WordPress 5.3 RC5 or trunk? |
I just updated to 5.3 on two sites. Same error here on one site and not on another. On the site with the error, I have all plugins deactivated, but I still get the plain white screen when attempting to add or edit a post. There are no PHP errors and the HTML document seems to be generated fine though there are a lot of duplicate ID errors if you run it through a validator. But I get the same Javascript errors as in the original report
And then many more frames. |
Hello, i just updated to 5.3 on one client site this morning and i got the same type of error. Pages are rendered but when i try to edit a page i got a blank page with this errors in console. I solved the probleme by deactivating the YOAST SEO plugin. |
I have exactly the same problem. No plugins installed, TwentyTwenty theme: Uncaught TypeError: Cannot set property ServerSideRender of # which has only a getter at Module.369 (server-side-render.min.js:1) at n (server-side-render.min.js:1) at wp.serverSideRender.0 (server-side-render.min.js:1) at server-side-render.min.js:1 Uncaught (in promise) Error: Actions must be plain objects. Use custom middleware for async actions. at v (data.min.js:1) at data.min.js:1 at Object.dispatch (data.min.js:1) at data.min.js:1 at w (data.min.js:1) at Generator._invoke (data.min.js:1) at Generator.t. [as next] (data.min.js:1) at n (data.min.js:1) at c (data.min.js:1) at data.min.js:1 |
Any thoughts on this? I have 5 sites all on the same server with same configuration and only one of them is having this issue with the post-new.php page. Same exact errors as shown above. |
Unfortunately, I'm not being able to replicate this problem in the testing scenarios I did. But given that @baskettcase said it happened only in one in five of the websites it may be a complex intermittent problem only happening in specific conditions.
|
I can run my client through the browser console to see if they are showing errors there for those that it is not working for. If you would like me to, then please let me know. |
It’s not easy to pin point the problem, everyone else’s fix did not work for me. I eventually found the problem and in my case it was Cloudflare’s orgin certificate config. All Is fine now. |
Interestingly, the offending site updated just fine to 5.3.1 and so did the other three sites that updated with no problem to 5.3.0. |
@websitehelperuk can you tell us what config did you change in Cloudflare origin certificate? I have the same issue as well, the issue still exist even when all plugins removed and using unedited TwentyTwenty theme. The issue only happens on one site of about 10 sites hosted on the same vps server. Reinstalling and downgrading the core to previous version also didn't work. |
I tried following the suggested fixes, they arent working for me... so far i only have 1 site with this problem. tries multple browsers. sof ar no luck! |
Attempt to fix: WordPress/gutenberg#18419
I turned on Disable Gutenberg Editor setting of the WPBakery Page Builder and then my problem solved but if you need the Gutenber editor it couldn't help you. Sorry :( |
If you don't need the Gutenber Editor, maybe you can install the Classic Editor plugin? |
Hi, in my case this was caused by an error in the server config and SSL certificate which was not pointing to the correct domainname. I host my server through cloudways after contacting the support they fixed the issue. It is an error that happend multiple times when switching domainnames. And have to make them aware of the issues and where the possible fix could be... |
This solve my issue temporarily so it is not an option anymore. I have to use dns-01 authorization on RunCloud and it works fine now. This comment helped me. |
Going to close this issue as it seems more of a server config issue than a Gutenberg one. |
Just a reminder for the close here that originally I got this issue on the WP contributor's day on a localhost setup following the guidelines in order to contribute. This was not done on a production server or anything of the sort, it was pretty much out of the box dev environment. For some reason, other folks around me did not reproduce it. I am not posting this with a request for a followup, just a clarification after the "close" |
Describe the bug
I am at the WordPress Contributor day in Sofia and have setup my dev environment quite a while back when everything was working great. When I opened ticket for single view edit screen and went to a single page view I saw white screen and nothing else.
Reason was error in JS:
The error points mainly to this snippet:
I've setup the Gutenberg repo in the WP core dev area (src folder) and activated it. Then i changed
window.wp.components.ServerSideRender
towindow.wp.editor.ServerSideRender
and the editor loaded and was usable again.Note - one more error shows up now: https://gist.github.com/xavortm/963ae5ad0d1fd409008b9df67000953d (kinda long). but at least it works!
To reproduce
Steps to reproduce the behavior:
Expected behavior
Working single edit view
Screenshots
Doesn't help, just white screen. (On mobile WP admin bar shows up)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: