[wp-trac] [WordPress Trac] #32838: HTTP error on upload MP3 files

WordPress Trac noreply at wordpress.org
Tue Jun 30 13:42:40 UTC 2015


#32838: HTTP error on upload MP3 files
--------------------------+-----------------------------
 Reporter:  ZanziPanzi    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.2.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In module:

 wp-admin\includes\media.php

 We have string 2945:

 {{{
 require( ABSPATH . WPINC . '/ID3/getid3.php' );
 }}}

 But we have folder "/Id3/" on default wordpress installation (lower case
 "d" letter). So xNix servers don't see the folder "/ID3/" (because of case
 sensetive folder name) and while uploading MP3 files we get "HTTP error"
 with PHP-error in logs:

 {{{
 [Tue Jun 30 16:25:27 2015] [error] [client 178.150.98.48] PHP Warning:
 require(/wp-includes/ID3/getid3.php) [<a
 href='function.require'>function.require</a>]: failed to open stream: No
 such file or directory in /wp-admin/includes/media.php on line 3000,
 referer: /wp-admin/post.php?post=3&action=edit

 [Tue Jun 30 16:25:27 2015] [error] [client 178.150.98.48] PHP Fatal error:
 require() [<a href='function.require'>function.require</a>]: Failed
 opening required '/wp-includes/ID3/getid3.php'
 (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php')
 in /wp-admin/includes/media.php on line 3000, referer: /wp-
 admin/post.php?post=3&action=edit
 }}}

 '''Solution:'''

 a. Rename folder to "ID3"
 or
 b. Edit string 2945 in media.php and change folder name to "Id3"

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


More information about the wp-trac mailing list