Clash with ModSecurity AtomiCorp causes White screen on all Gutenberg page and post editors
Describe the bug When editing a post with Gutenberg 3.8.0 I only see a white screen with no sidebar
(after investigation) THE CAUSE: is a clash with Apache ModSecurity (AtomicCorp) which sees the iFrame JS insertion as a cross site scripting attempt.
To Reproduce Steps to reproduce the behavior: (edited to reflect new info)
- Be on a server using ModSecurity with the AtomiCorp ruleset
- Go to https://MYDOMAIN.com/wp-admin/edit.php?post_type=page or https://MYDOMAIN.com/wp-admin/edit.php
- Click on https://MYDOMAIN.com/wp-admin/post.php?post=8&action=edit or https://timeshard.com/wp-admin/post.php?post=1&action=edit
- See error - white screen - no sidebar
Expected behavior I expect to see Gutenberg
Desktop
- OS: Windows 7
- Browser : Firefox developer edition
- Version63.0b7 (64)
- Wordpress version 4.9.8–en_GB
ALSO
- Chrome : Version 69.0.3497.100 (Official Build) (64-bit)
Plugins: Gutenberg Version 3.8.0 Error Log Monitor Version 1.6.2 | By Janis Elsts | Wordfence Security Version 7.1.12 WP Super Cache Version 1.6.4 WPForms Lite Version 1.4.9
Console
JQMIGRATE: Migrate is installed, version 1.4.1 load-scripts.php:9:542
Loading failed for the <script> with source “https://MYDOMAIN.com/wp-content/plugins/gutenberg/vendor/wp-polyfill-ecmascript.min.2ae96136.js”. post.php:64:1
ReferenceError: regeneratorRuntime is not defined[Learn More] index.js:12:86582
this.wp.editor</Qn<
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/editor/index.js:12:86582
this.wp.editor<
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/editor/index.js:12:86565
n
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/editor/index.js:1:139
this.wp.editor<
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/editor/index.js:1:558
<anonymous>
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/editor/index.js:1:36
TypeError: Object(...) is not a function[Learn More] index.js:12:8067
213
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/block-library/index.js:12:8067
n
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/block-library/index.js:1:145
this.wp.blockLibrary<
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/block-library/index.js:1:564
<anonymous>
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/block-library/index.js:1:42
TypeError: Object(...)(...) is undefined, can't access property "getBlockSelectionStart" of it[Learn More] index.js:12:15977
INIT/<
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:12:15977
Ge
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:12:13961
INIT
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:12:15955
107/e.exports</</</</<
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:1:1776
214
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:12:16946
n
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:1:141
this.wp.editPost<
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:1:560
<anonymous>
https://MYDOMAIN.com/wp-content/plugins/gutenberg/build/edit-post/index.js:1:38
TypeError: wp.editPost is undefined, can't access property "initializeEditor" of it[Learn More] post.php:1706:5
window._wpLoadGutenbergEditor</<
https://MYDOMAIN.com/wp-admin/post.php:1706:5
I should mention that previous versions of Gutenberg worked on this site. Also that I have tried deactivating all plugins listed to see if they are causing conflicts. With only Gutenberg active the error persists.
Thank you for including JavaScript console details! This is the important bit:
Loading failed for the
Owner
Other Repo Issues