[wp-trac] [WordPress Trac] #45880: Twenty Seventeen shows warning: file_get_contents when new post/page creation in Japanese Settings

WordPress Trac noreply at wordpress.org
Wed Jan 9 14:29:52 UTC 2019


#45880: Twenty Seventeen shows warning: file_get_contents when new post/page
creation in Japanese Settings
--------------------------+-----------------------------
 Reporter:  atachibana    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  5.0.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 **Environment:**

 - Windows 10 Japanese (64bit) UAC off
 - XAMPP for Windows 7.3 (PHP 7.3)
 - WordPress 5.0.2
 - Theme: Twenty Seventeen
 - Plugin: None

 **Reproduction:**

 1. Setup WordPress on Windows (XAMPP environment).
 2. Select Twenty Seventeen Theme
 3. Select Japanese from Language Settings ('日本語')
 4. Select New Post ('投稿' > '新規追加')

 You will see Warning messages are flushed twice with same message but
 different format, and editor screen is displayed (See attached images for
 real displayed strings)
 {{{
 Warning: file_get_contents(C:\xampp\htdocs\wordpress/wp-
 content/themes/twentyseventeen): failed to open stream:
 Permission denied in C:\xampp\htdocs\wordpress\wp-admin\edit-form-
 blocks.php on line 200
 }}}

 This warning is not shown
 - if language is English, or
 - if theme is Twenty Nineteen or Twenty Sixteen, or
 - if Classic Editor

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


More information about the wp-trac mailing list