[wp-trac] [WordPress Trac] #49979: file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory in /wp-includes/l10n.php on line 1096

WordPress Trac noreply at wordpress.org
Thu May 7 16:16:08 UTC 2020


#49979: file_get_contents(): read of 8192 bytes failed with errno=21 Is a directory
in /wp-includes/l10n.php on line 1096
-----------------------------------------+------------------------------
 Reporter:  Lwangaman                    |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  I18N                         |     Version:  5.4
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by ocean90):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 Hello @Lwangaman, welcome to WordPress Trac!

 Thanks for the report. Are you able to check what the value of `$file` is
 when a warning is thrown? Does it happen with specific plugins active?
 Adding a random `is_dir()` check should be avoided as it doesn't fix the
 root cause and this is probably also an issue for plugins using the
 filters in `load_script_translations()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49979#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list