-
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
Attempts to edit posts that contain Strong Testimonials plugin shortcodes open as blank pages #7461
Comments
I have opened the console, this is what I found...
|
Same issue after upgrading to 3.1.0. Console output: https://gist.github.com/julmuell/b5e355dd3c127bb48bd62c74b94db145 |
Hi @Stefano8663, Thanks for the bug report! I've edited the title of the issue because "The problem is back after upgrading!" is a bit hard to triage and fix 😄. Your issue description and links to previous issues are helpful though, thanks! If you could title your issues descriptively in the future it will help us to sort through the issue and address it, thanks! It looks like there is a JS error there but I'm not seeing it locally on my development build. Could be an issue with the packaged Gutenberg 🤔 |
Hi! |
Having this problem on all sites running Gutenberg, but with the Home page only. Screen blank, no meta boxes. New page: no problem. Other pages: no problem. New page: no problem. Turned off all other plugins, problem persists, so definitely a Gutenberg issue. |
I just fetched a fresh copy of Gutenberg from the plugin directory, and I'm unable to replicate this, not for regular posts and pages, or the page defined as the front page of my site. If you are able to test something for me, in your |
Done it, but it's still the same... JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js:2:542 Source map error: request failed with status 404 |
The problem is with Firefox! I went in with Opera and Chrome and it works just fine! |
Nope. I'm using Chrome and the problem is there as well. reverting back to Gutenberg version 3.01 solves the issue, but 3.10 is not working. Cleared cache as well. Firefox isn't working either. |
What browsers and version numbers of those tested browsers do you have, and are there any browser extensions enabled if so have you tried with no extensions running? |
Opera 53.0.2907.99: no extensions Gutenberg 3.01 works, 3.10 doesn't. |
I have the same issue |
This is the console log
|
Thanks for the error stack trace. Prime suspect here, particularly with the release, is the NUX dot tips. Specifically, I think it's this line throwing the error: gutenberg/nux/components/dot-tip/index.js Line 35 in f143608
The concern about using Still not entirely clear why it's getting unmounted, as I'm unable to reproduce the issue. For those suffering from the issue, you may try entering the following into your developer tools console and reloading the page to see if it helps:
|
@aduth After disabling the coblocks plugin, running |
There appear to be multiple issues within the comments here, at least based on some of you seeing errors in the console and others not. @0xcrypto or anyone else not seeing any errors; if you have other plugins on your site, could you try disabling them one by one temporarily to see if there is any impact in Gutenberg's ability to display correctly? There may be a specific plugin incompatibility that needs to be addressed. |
Okay, I did a test on a sandbox site. All plugins off except for Gutenberg 3.10. Then turn them back on and off in batches. In the end, I had only Gutenberg 3.10 and Strong Testimonials 2.31.8 active, and no editor on the home page. All other pages: no problem. 3.01 and Strong Testimonials works, 3.10 doesn't. Tried localStorage.clear(); in Chrome console, but just says undefined. |
That's normal; the return value from |
No, it didn't. |
@aduth Unfortunately, I cannot test it on my live site. On a fresh install, it runs fine. In a fresh install, I can see some values associated with gutenberg in local Storage drop-down in storage tab of developer console. These values are missing in my live site. I am trying to make a clone of my live site locally to test further. Will update here soon. |
Came across similar bug, white screen upon editing a page, turned out it was due to a shortcode. Its a known bug for past 7 years, in WordPress, that if WP_Query object calls Modifying the codes in shortcodes resolved the issue for me. |
Hmm, unfortunately I'm having trouble reproducing. I didn't realize 'til now, but you are saying that specifically the editor fails to load for the page which is assigned as the Static Front Page? Is there anything notable about this page, as far as document settings or content? e.g. authorship (authored by a user with a specific role?), tags / categories, discussion settings, menu order, visibility, shortcodes or embeds in content? |
Okay, that's a great mind! The home page has a paragraph block and a shortcode block for Strong Testimonials. Looks like this: [testimonial_view id="1"] (the opening and closing comments are being stripped from this box, but you know what that looks like... wp:shortcode and /wp:shortcode) Removing the shortcode block lets Gutenberg edit the page again! Now I am tempted to start blaming Strong Testimonials, but like I said, using G 3.01 gives no problems with the same shortcode, but 3.10 does. G is apparently causing the issue here. |
Great, thanks @RobinRoelofsen . Here are steps to reproduce from a fresh install:
I haven't tracked down the issue in its entirety, though it seems to be that Gutenberg is trying to initialize with the wrong post (loads a testimonial, not the intended post to edit). wp.editPost.initializeEditor( 'editor', "wpm-testimonial", 12375, editorSettings, window._wpGutenbergDefaultPost ) I suspect this may be indirectly related to refactoring of editor initialization in #6384 (cc @youknowriad ). I imagine that Strong Testimonials may be setting the gutenberg/lib/client-assets.php Line 996 in 8fa8b64
Unclear yet whether this is something that Strong Testimonials should be cleaning up after itself, or if Gutenberg can more reliably retrieve the post object for the post being edited. |
Great news that it can be replicated. Thanks for looking into it. |
Really nice sleuthing here! I am closing this issue in favor of a new more streamlined bug report to try to help make it easier for developers to review and respond to the underlying problem. See #7582. |
I have blank page instead of post editing one too. Looks like it conflicts with Webcraftic Clearfy |
The "Table of Contents Plus" plugin is causing this issue for me. If I save a post containing the shortcode to display a table of contents, I am unable to edit the article unless I disable the plugin first to avoid a blank screen. |
Hi guys.
I wrote this post a couple of weeks ago, it was closed: #7250 (comment)
Unfortunately, I just upgraded to Version 3.1.0 and the issue came back. When I click to edit an article/page or to create a new one, the page comes up completely blank!
I have uninstalled the plugin and installed it again, but still nothing...
The text was updated successfully, but these errors were encountered: