[wp-trac] [WordPress Trac] #45190: Blank screen for WP 5.0 beta on a web host with a Mod_Security conflict

WordPress Trac noreply at wordpress.org
Thu Oct 25 17:24:20 UTC 2018


#45190: Blank screen for WP 5.0 beta on a web host with a Mod_Security conflict
--------------------------+--------------------------
 Reporter:  designsimply  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.0
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  dev-feedback
  Focuses:                |
--------------------------+--------------------------
 I'm posting this here as documentation for an issue that breaks the editor
 due to a `mod_sec` rule triggering for the `wp-polyfill-ecmascript.min.js`
 (on Bluehost in my case but other hosts may be affected) and to see
 whether anything can be done from the WP side to either help alleviate the
 problem or show a useful error message such as passing through the error
 that is seen when you try to load the blocked file directly (this might
 not be possible in context).

 Steps to reproduce:

 1. Install WP 5.0 beta on any host which has a `Mod_Security` rule
 blocking the word `ecmascript`.
 1. Go to Posts > Add New.

 Result: completely white screen.

 Console panel contains:

 {{{
 JQMIGRATE: Migrate is installed, version 1.4.1 load-scripts.php:9:542
 Loading failed for the <script> with source “https://madefortesting.com
 /wp-includes/js/dist/vendor/wp-polyfill-
 ecmascript.min.js?ver=5.0-beta1-43823”. post.php:73
 [Show/hide message details.] ReferenceError: regeneratorRuntime is not
 defined[Learn More] api-fetch.min.js:1:3589
 [Show/hide message details.] TypeError: wp.apiFetch is undefined[Learn
 More] post.php:1607:1
 [Show/hide message details.] ReferenceError: regeneratorRuntime is not
 defined[Learn More] data.min.js:1:14145
 [Show/hide message details.] ReferenceError: regeneratorRuntime is not
 defined[Learn More] core-data.min.js:1:6442
 [Show/hide message details.] ReferenceError: regeneratorRuntime is not
 defined[Learn More] editor.min.js:55:45558
 [Show/hide message details.] TypeError: Object(...) is not a
 function[Learn More] block-library.min.js:12:9498
 [Show/hide message details.] TypeError: Object(...)(...) is
 undefined[Learn More] edit-post.min.js:12:19442
 [Show/hide message details.] TypeError: wp.editPost is undefined[Learn
 More] post.php:1680:4
 window._wpLoadBlockEditor</<
 https://madefortesting.com/wp-admin/post.php:1680:4
 }}}

 [[Image(Screen Shot 2018-10-25 at 9.22.00 AM.png,100%)]]

 Since the console messages say `wp-polyfill-ecmascript.min.js` could not
 be loaded, I tried loading https://madefortesting.com/wp-
 includes/js/dist/vendor/wp-polyfill-ecmascript.min.js?ver=5.0-beta1-43823
 directly and saw this:

 > Not Acceptable! \\
 > An appropriate representation of the requested resource could not be
 found on this server. This error was generated by Mod_Security.

 [[Image(Screen Shot 2018-10-25 at 11.12.35 AM.png,100%)]]

 I have reached out to Bluehost to see if the `Mod_Security` rule can be
 modified to allow the `wp-polyfill-ecmascript.min.js` file to load.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45190>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list