-
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
Gutenberg Not Working: White Page Admin Area (solved 3 separate issues: theme conflict, file blocked at host level, Apache config blocking anything with "data" in the name) #9979
Comments
I'm experiencing the same issue. It also occurs when it is the only plugin active in Troubleshooting Mode of the Health Check plugin. The editor works normally when Gutenberg is deactivated, and reinstalling Gutenberg had no effect. Browser Environment
WordPress Environment
|
I have the same problem here: I am currently evaluating WordPress. ----8<---- This output is the same in the fresh install with Gutenberg the only installed plugin and the previous install where I tested numerous plugins and themes before (and still have many plugins (re)activated after experimenting with Gutenberg and switching them off) |
Thank you for reporting this! I tested trying to create a new post using WordPress 4.9.8 and Gutenberg 3.8.0 using Firefox 62 on Windows 10 via browserstack.com and also using Edge 42 and on Windows 10 installed on a VM, and I found that I was able to create new posts without any problems and editing existing posts also worked normally in my tests. @mertcangokgoz and @dyllisphiller, are you able to check the web console in your browser developer tools to see if there are errors that match the ones that @andreas-pgss has reported? If you are using Cloudflare, there have been some past conflicts which have been resolved, but I see in #2704 that there still may be some problems ongoing. If you are able to check your Cloudflare WAF log to look for any rules that are causing requests to be blocked, can you please make a note of that on the #2704 issue? @andreas-pgss thank you for including browser console output. In your 2nd test, where Gutenberg was the only plugin installed, what theme were you testing with? Can you think of anything such as a security or firewall settings on your server which may be blocking the API in your case? If you check the Network tab in your browser developer tools, can you see the responses for any failed API calls? |
@mertcangokgoz oh! I almost missed it before, but can you please test again after deactivating the following plugin? The REST API must be enabled in order for Gutenberg to work.
|
@designsimply here's the browser console error log. I've redacted the domain with
I am not using Cloudflare. Also, a correction (I'm not sure if it's relevant, so I'm including it anyway): Trying to enable Gutenberg in Health Check's Troubleshooting Mode gives an error:
|
I've seen several similar reports since 3.8 was released, and I think the problem is often (but not always), because of the new It looks like there's a ModSecurity rule that incorrectly flags that file as being an XSS attack. That seems consistent with the console log that @dyllisphiller posted, but is probably a separate issue from what @andreas-pgss posted. You can confirm it's caused by ModSecurity by checking your server logs (probably Apache/Nginx error logs, but wherever ModSecurity is configured to log to); if you're not sure where to look, you can ask your host for help. Here's some reports on the forums that may be related:
|
Thank you for your answer @designsimply I've tried to turn off plugins one by one, no change in the problem. finally closed the CloudFlare but white page again (No any errors appear browser) |
@designsimply: I was using the default theme, Twenty Seventeen; I even uninstalled the two default plugins that come with the base installation package. wordpress-4.9.8.-gutenberg-3.8.0_network-log.har.json.txt.zip |
PS: I forgot to say: this is probably the really interesting part:
But: on the file system level this file is definitely accessible (read by all, this is a test machine in the local network after all). Might there be anything wrong with the rewrite settings? (Settings -> Permalinks is set to %baseurl%/%postname%/). .htaccess is:
|
@dyllisphiller thank you for the extra information! This is worth digging into:
May I please ask what web hosting service you are using? |
@mertcangokgoz thank you for testing with plugins turned off.
Apologies to ask again. You are sure there are no errors showing in Chrome inside the View > Developer > JavaScript Console panel? I was expecting there to be some errors there for your case! May I ask for one additional troubleshooting step if possible? Can you turn off other plugins and then also clear browser cache before trying to go to Posts > Add New? |
@designsimply I tried to turn off all plugins but the white page, I tried to turn off Cloudflare(also turn off all plugins) but the white page again this is an interesting situation because I don't get the error. (server side and client side) When I press F12, I saw Gutenberg codes(HTML and js) in the developer console elements tab but It cannot be rendered to the browser |
@mertcangokgoz are you saying that if you turn off all plugins and also Cloudflare that creating a new post works normally at that point? |
@andreas-pgss, a 403 Forbidden error is indeed a point of interest.
If the file permissions are correct then I am not sure why you would see this. 😞 Are you certain there are no other security or firewall rules which could be affecting your local sever?
I tried testing this by updating Settings > Permalinks > Custom Structure to Are you testing on |
@designsimply Fix this problem, Only edit my functions.php and remove this snippet https://gist.github.com/loorlab/7a5b81c121e74fe7d4060b60d868352c |
@mertcangokgoz Where exactly did you find this snippet in your code? I grepped my whole wordpress folder for it and did not find it anywhere. |
I saw yesterday that package apparmor is installed on the VM because it was required by the package mysql-server-5.7 package. I have no experience with apparmor. Package apparmor-profiles is not installed. Could apparmor be the culprit? This morning I remembered I had installed Gutenberg in a local test install at home, too, a while ago. I quickly checked: it is working fine with version 3.80 on WP 4.9.8. My machine at home is running apache 2.4.something, MariaDB instead of MySQL and 7.2ish PHP on Xubuntu 18.04 (as compared to 16.04 in the test setup I reported the bug with above). As I had no time this morning I will try to make a comparison of set-ups and settings on the weekend if I can manage. By the way, I am using the German packages from https://de.wordpress.org/ - e.g. https://de.wordpress.org/wordpress-4.9.8-de_DE.tar.gz
I have done that a couple of times already. It did not fix the problem.
No. I used the default plugin installation option from within the WordPress instance.
Currently I do not have the time for that, or at least not in the office. |
@andreas-pgss I turned off the wp-oembed feature. Because I wasn't using it. that's it |
Sorry, but I do not understand you. I tried several plugins that claim to switch of the oembed feature, but none of them helped. |
The Apache log files say: ==> error.log <== ==> access.log <== |
The Apache logs led me to the solution: in the configuration file of the vhost, /etc/apache2/sites-available/wp-gutenberg.conf, I had a section
Since the path to the Script /var/www/wp-gutenberg/wp-content/plugins/gutenberg/build/data/index.js has the string "data" in it, this is obviously the problem.
and restarting the apache daemon(!) I could fix it and Gutenberg is now working. |
@designsimply I'm using A Small Orange. I haven't been able to view the server logs in cPanel, so I've opened a ticket to fix the issue. Once I can review those logs, I'll post an update here. |
@dyllisphiller thank you for the extra info. I found one other case of someone using A Small Orange for hosting who is having the same problem #9990 (comment) so contacting them and asking them for help figuring out why the https://[domain]/wordpress/wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js file is not being loaded properly is the best route in your case. Let us know what you find! |
In summary, it looks like there were three separate problems reported in this thread:
I am going close this issue as resolved and say that I really appreciate everyone here who is testing Gutenberg at this early stage and taking the time to dig into the details. Thank you! |
@andreas-pgss, I'm glad you've solved the problem! Out of curiosity, do you remember where you got that Apache vhost configuration from? I mean, the one with |
@dyllisphiller I'd be curious to hear what you find out. I use A Small Orange as well, and I'm seeing this same issue. I think there must be some sort of blockage of the word "ecmascript". When I alter the file name to remove the "t" at the end, then I can see the file. For instance: wp-polyfill-ecmascrip.min.2ae96136.js returns 200 while wp-polyfill-ecmascript.min.2ae96136.js returns a 404. Both files exist, though: |
@awayken: Did you see my "solution"? I found there was a filter of certain paths/file names in the vhosts config, there might also be something like this somewhere in .htaccess or the base configuration of your webserver. |
I have only got a vague memory that there was some blog article about a good set of apache directives to put in .htaccess and/or vhost configs. Has been a while. Usually I include a commet quoting the source of such stuff, but in this file I sadly forgot. So it is quite unlikely I find it again. If I do, I will let you know. |
@awayken Unfortunately, I’ve made no progress with their support. I wrote:
A Small Orange support replied:
(I’m definitely changing hosts, but that’s neither here nor there.) Based on this discussion, I’m inclined to think the server thinks |
Is there some htaccess equivalent version of that locationmatch fix? I spoke with my host and don't have access to my Apache vhost configuration, so I'm left trying to deal with this at the htaccess level. |
In Plesk (Plesk Onyx 17.0.17 Update #59), changing my ModSecurity setting from "On" to "Detection Only" fixed this for me/ loaded the Gutenberg editor on a fresh install of Wordpress running the TwentySeventeen theme. I installed Wordfence as well - all is good. Although I definitely need ModSecurity to be fully "On" - is there a security rule I can add at the server level? |
My problem was that I had a function which minifirewall the html code, removing comments and so on. //$buffer = preg_replace('!/*[^*]*+([^/][^*]*+)*/!', '', $buffer); /** delete comments **/ |
here same problem... |
Describe the bug
White screen when trying to edit or create new post with gutenberg
To Reproduce
Steps to reproduce the behavior:
Expected behavior
normal editor func
Screenshots
None
Desktop (please complete the following information):
Smartphone (please complete the following information):
None
Additional context
Installed Plugins
No any errors appear browser and etc, no any errors nginx logs, I'm using php 7.1 (no error) for server side, tried to close plugins and the result did not change, How can I solve this problem?
The text was updated successfully, but these errors were encountered: